Code

Fixed save problem when no kolab object is present
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 May 2005 12:20:58 +0000 (12:20 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 May 2005 12:20:58 +0000 (12:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@548 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servKolab.inc

index 65d5a147e34a2d47cca869279177c1e4c92b6003..910ab152ec2ea47dd69d1d4944d4aa68b9156ff7 100644 (file)
@@ -135,6 +135,10 @@ class servkolab extends plugin {
     $ldap= $this->config->get_ldap_link();
     $this->dn = "k=kolab,".$this->config->current['BASE'];
 
+    if (count($this->kolabHost) == 0){
+      return;
+    }
+
     /* Are we alone? Remove complete entry... */
     if (count($this->kolabHost) == 1){