From: hickert Date: Thu, 10 Apr 2008 11:51:27 +0000 (+0000) Subject: Fixed saving of objects without IP X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4582d2a53e5e670b5949d9267fcd93090bc21200;p=gosa.git Fixed saving of objects without IP git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 06cb3ada7..940da119d 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -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; }