From 1eaeae89604a264c51fecc2584baed5974319328 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Apr 2008 10:57:09 +0000 Subject: [PATCH] Fixed NTP server stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10318 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_terminalGeneric.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.30.2