diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc
index 7d815d40fae10b81f7fdb9d46e61acf888a0128d..22324e41efabc4c3d95cf30e562aea70afdc8483 100644 (file)
if(isset($_POST['addLicenseUsage']) && isset($_POST['selectedHostToAdd'])){
$host = get_post('selectedHostToAdd');
if(!empty($host) &&
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;
}
}
$this->usedByHost[] = $host;
}
}