Code

Fixed problem with config values in section '<location' not been loaded during login.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2011 07:49:46 +0000 (07:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2011 07:49:46 +0000 (07:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@20983 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_config.inc

index f3b8907ab2b98387ae6c67760f7bdfdfea61c0df..5293e4138ab91a1dea7894649c7a647c97e34794 100644 (file)
@@ -450,6 +450,8 @@ class config  {
      */
     function load_servers ()
     {
+        $this->configRegistry->reload();
+
         /* Only perform actions if current is set */
         if ($this->current === NULL){
             return;
@@ -462,7 +464,7 @@ class config  {
         /* Search mailMethod konfiguration in main section too 
          */
         $tmp = $this->get_cfg_value("core","mailMethod");
-        if ($tmp){
+        if ($tmp == ""){
             $ldap->search ("(objectClass=goMailServer)", array('cn'));
             $this->data['SERVERS']['IMAP']= array();
             while ($attrs= $ldap->fetch()){