Code

Fixed NTP server stuff
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 10:57:09 +0000 (10:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 10:57:09 +0000 (10:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10318 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc

index 9c9216ee1cfb73e677c08a11139b05262c4044ab..f80dc1c969d9f3829319a825e0c56a5d0d9ecc58 100644 (file)
@@ -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;
       }
     }