Code

Backport from trunk
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_terminalGeneric.inc
index cb0220a34a81d1579f594557a5a5d6847f06c0ac..2e5e3899e845c72e007ad8e0700c64e938219911 100644 (file)
@@ -100,7 +100,7 @@ class termgeneric 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();
         }
@@ -276,7 +276,7 @@ class termgeneric 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;
             }
         }
@@ -659,7 +659,7 @@ another location! */
         }
 
         /* 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();
         }