Code

Replaced in_array calls for gosa-plugins
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / class_licensePoolGeneric.inc
index eef2354fe4d3166f840461bcdc68acde73c35b53..615974293a61167f34c937a6c6a849190ddaf538 100644 (file)
@@ -325,7 +325,7 @@ class licensePoolGeneric extends plugin
       if(preg_match("/w/",$this->getacl("productIds"))){
         if(isset($_POST['availableProduct']) && isset($_POST['addProduct'])){
           $pro = get_post('availableProduct');
-          if(isset($this->availableProductIds[$pro]) && !in_array($this->availableProductIds[$pro], $this->productIds)){
+          if(isset($this->availableProductIds[$pro]) && !in_array_strict($this->availableProductIds[$pro], $this->productIds)){
             $this->productIds[] =$this->availableProductIds[$pro];
           }
         }
@@ -346,7 +346,7 @@ class licensePoolGeneric extends plugin
       if(preg_match("/w/",$this->getacl("windowsSoftwareIds"))){
         if(isset($_POST['newSoftwareId']) && isset($_POST['addSoftware'])){
           $soft = trim(get_post('newSoftwareId'));
-          if(!empty($soft) && !in_array($soft, $this->softwareIds)){
+          if(!empty($soft) && !in_array_strict($soft, $this->softwareIds)){
             $this->softwareIds[] = $soft;
           }
         }