Code

Replaced in_array calls for gosa-plugins
[gosa.git] / gosa-plugins / glpi / admin / systems / services / glpi / class_glpiDeviceManagement.inc
index 699d598dbed429fa774bc0102f0d12b8ad44ee93..a5153c05f64bb0847e9986011b7bae7a2f5f3ad1 100644 (file)
@@ -84,7 +84,7 @@ class glpiDeviceManagement extends plugin
 
         /* Check if type is allowed, and create empty entry */
         $tmp = array();
-        if((!isset($this->DeviceAttrs[$deviceType]))||((!in_array($deviceType,$this->AllowedDevices)))){
+        if((!isset($this->DeviceAttrs[$deviceType]))||((!in_array_strict($deviceType,$this->AllowedDevices)))){
           print_red(sprintf(_("Internal Error can't create device of type '%s'"),$deviceType));
         }else{
           foreach($this->DeviceAttrs[$deviceType] as $attr){