Code

Replaced in_array calls with in_array_strict
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / class_licenseGeneric.inc
index 7d815d40fae10b81f7fdb9d46e61acf888a0128d..22324e41efabc4c3d95cf30e562aea70afdc8483 100644 (file)
@@ -185,8 +185,8 @@ class licenseGeneric extends plugin
             if(isset($_POST['addLicenseUsage']) && isset($_POST['selectedHostToAdd'])){
                 $host = get_post('selectedHostToAdd');
                 if(!empty($host) && 
-                        in_array($host,$this->getHosts()) && 
-                        !in_array($host, $this->usedByHost)){
+                        in_array_strict($host,$this->getHosts()) && 
+                        !in_array_strict($host, $this->usedByHost)){
                     $this->usedByHost[] = $host;
                 }
             }