Code

Preset mailmethod to "" if not set to avoid PHP errors.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jul 2007 13:43:16 +0000 (13:43 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jul 2007 13:43:16 +0000 (13:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6851 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 82e65d402292352e04ed0e6bd1a807f0f1802346..80d0105732ae20f564da8cc8dead4d12167943cc 100644 (file)
@@ -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();