From dff324c694bec624a42a1f32ade317cf8c760163 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 12 Jul 2007 13:43:16 +0000 Subject: [PATCH] Preset mailmethod to "" if not set to avoid PHP errors. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6851 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/class_config.inc b/include/class_config.inc index 82e65d402..80d010573 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -335,6 +335,9 @@ class config { /* Fill imap servers */ $ldap= $this->get_ldap_link(); $ldap->cd ($this->current['BASE']); + if (!isset($this->current['MAILMETHOD'])){ + $this->current['MAILMETHOD']= ""; + } if ($this->current['MAILMETHOD'] == ""){ $ldap->search ("(objectClass=goMailServer)", array('cn')); $this->data['SERVERS']['IMAP']= array(); -- 2.30.2