Code

Backport from trunk
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / class_licensePoolGeneric.inc
index dddcd36f8f1b3398acdb356ee5d43d491633ea15..b80de75b07780e554a94bcadef10378535cbc914 100644 (file)
@@ -343,7 +343,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];
                     }
                 }
@@ -364,7 +364,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;
                     }
                 }