Code

Updated termDNS to support the new statement handling.
[gosa.git] / gosa-plugins / systems / admin / systems / class_termDNS.inc
index a1aa50bcdcf43ddc85ac28e378f78ec649e1ffeb..d904a976f6de9531558b4b53283037a894eccbfe 100644 (file)
@@ -324,7 +324,7 @@ class termDNS extends plugin
       $this->dialog->read_only     = !$this->acl_is_writeable("dhcpSetup");
       $this->dialog->dhcpHWAddress = "ethernet ".$this->macAddress; 
       if(!empty($this->ipHostNumber)){
-        $this->dialog->statements['fixed-address'] = $this->ipHostNumber
+        $this->dialog->statements->set('fixed-address', $this->ipHostNumber)
       }
     }
 
@@ -736,7 +736,7 @@ class termDNS extends plugin
         $this->dialog->cn = $this->cn;
         $this->dialog->dhcpHWAddress = "ethernet ".$this->macAddress;
         if(!empty($this->ipHostNumber)){
-          $this->dialog->statements['fixed-address'] = $this->ipHostNumber;
+          $this->dialog->statements->set('fixed-address', $this->ipHostNumber);
         }
         $this->dialog->execute();
         $this->dialog->save_object();