Code

Fixed saving of objects without IP
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 11:51:27 +0000 (11:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 11:51:27 +0000 (11:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10322 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_termDNS.inc

index 06cb3ada7f8cd9242a017dd163edbc679aca2787..940da119d8d0a9bfaa0d6e82b66ed036019ca4d6 100644 (file)
@@ -688,7 +688,9 @@ class termDNS extends plugin
 
     /* Add all additional ipHostNumbers now 
      */
-    $this->attrs['ipHostNumber'] = array($this->ipHostNumber);
+    if(!empty($this->ipHostNumber)){
+      $this->attrs['ipHostNumber'] = array($this->ipHostNumber);
+    }
     foreach($this->additionalHostNumbers as $value){
       $this->attrs['ipHostNumber'][] = $value;
     }