From: cajus Date: Thu, 12 Jul 2007 13:43:16 +0000 (+0000) Subject: Preset mailmethod to "" if not set to avoid PHP errors. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dff324c694bec624a42a1f32ade317cf8c760163;p=gosa.git 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 --- 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();