Code

Little fix
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jul 2005 10:41:02 +0000 (10:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jul 2005 10:41:02 +0000 (10:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@919 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servKolab.inc

index c88e17bb34aa8c4d8a7c24ecf77029736cfc26ed..0e13bf3777b30d643ac4a625a0b03fe61b903bd4 100644 (file)
@@ -65,14 +65,17 @@ class servkolab extends plugin {
     } else {   
       $this->is_account=false;    
     } 
-
-    if(is_array($this->attrs['postfix-mynetworks'])){  
-      unset($this->attrs['postfix-mynetworks']['count']);
-      $tmp="";
-      foreach($this->attrs['postfix-mynetworks'] as $tm){
-        $tmp.=$tm.";";
+    if(isset($this->attrs['postfix-mynetworks'])){
+      if(is_array($this->attrs['postfix-mynetworks'])){  
+        unset($this->attrs['postfix-mynetworks']['count']);
+        $tmp="";
+        foreach($this->attrs['postfix-mynetworks'] as $tm){
+          $tmp.=$tm.";";
+        }
+        $this->postfix_mynetworks = $tmp;
       }
-      $this->postfix_mynetworks = $tmp;
+    }else{
+      $this->postfix_mynetworks="";
     }
   }