Code

Replaced in_array calls for gosa-plugins
[gosa.git] / gosa-plugins / goto / admin / systems / goto / class_terminalGeneric.inc
index e26287a52dea5ac0665590366f32324b427f6983..be20302d1747639d5b8f47f2223df716dc1aea95 100644 (file)
@@ -103,7 +103,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();
     }
@@ -286,7 +286,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;
       }
     }
@@ -662,7 +662,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();
     }