From 4582d2a53e5e670b5949d9267fcd93090bc21200 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Apr 2008 11:51:27 +0000 Subject: [PATCH] Fixed saving of objects without IP git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.30.2