Code

Backport from trunk
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_workstationGeneric.inc
index db2febb4ddfd6300de06f77870c86bb5443ed18f..506c3cfaf6e5d34cf4bbe607bc43c732f378e9d0 100644 (file)
@@ -116,7 +116,7 @@ class workgeneric extends plugin
         }
 
         /* Set inherit checkbox state */
-        if((in_array("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer) == 0)){
+        if((in_array_strict("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer) == 0)){
             $this->inheritTimeServer = true;
             $this->gotoNtpServer=array();
         }
@@ -263,7 +263,7 @@ class workgeneric extends plugin
 
         $tmp = array();
         foreach($this->gotoNtpServers as $server){
-            if(!in_array($server,$this->gotoNtpServer)){
+            if(!in_array_strict($server,$this->gotoNtpServer)){
                 $tmp[$server] = $server;
             }
         }
@@ -303,7 +303,7 @@ class workgeneric extends plugin
 
         $ntpser = array();
         foreach($this->gotoNtpServers as $server){
-            if(!in_array($server,$this->gotoNtpServer)){
+            if(!in_array_strict($server,$this->gotoNtpServer)){
                 $ntpser[$server] = set_post($server);
             }
         }
@@ -682,7 +682,7 @@ class workgeneric extends plugin
         }
 
         /* Set inherit checkbox state */
-        if((in_array("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer)==0)){
+        if((in_array_strict("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer)==0)){
             $this->inheritTimeServer = true;
             $this->gotoNtpServer=array();
         }