From: hickert Date: Thu, 10 Apr 2008 10:57:09 +0000 (+0000) Subject: Fixed NTP server stuff X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1eaeae89604a264c51fecc2584baed5974319328;p=gosa.git Fixed NTP server stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10318 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index 9c9216ee1..f80dc1c96 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -83,8 +83,8 @@ class termgeneric extends plugin $this->gotoNtpServer= array(); if(isset($this->attrs['gotoNtpServer'])){ $this->inheritTimeServer = false; - unset($this->attrs['gotoNtpServer']['count']); - foreach($this->attrs['gotoNtpServer'] as $server){ + for($i = 0 ; $i < $this->attrs['gotoNtpServer']['count']; $i++ ){ + $server = $this->attrs['gotoNtpServer'][$i]; $this->gotoNtpServer[$server] = $server; } }