Code

Replaced in_array calls for gosa-plugins
[gosa.git] / gosa-plugins / fai / admin / fai / class_faiPartitionTableEntry.inc
index a5adc2f1c65b6dbe3df9c1e0176be5ebb4387a8c..be131cd9134d4f7ff474ec1956c1fd6579d564eb 100644 (file)
@@ -332,7 +332,7 @@ class faiPartitionTableEntry extends plugin
       $message[] = msgPool::invalid(_("Name"),$d,"/[a-z0-9_\-]/i");
     }
 
-    if($this->old_cn != $this->DISKcn && in_array($this->DISKcn,$this->parent->getUsedDiskNames())){
+    if($this->old_cn != $this->DISKcn && in_array_strict($this->DISKcn,$this->parent->getUsedDiskNames())){
       $message[] = msgPool::duplicated(_("Name"));
     }
        
@@ -355,7 +355,7 @@ class faiPartitionTableEntry extends plugin
         continue;
       }
  
-      if((in_array($part['FAImountPoint'],$alreadyUsed['FAImountPoint']))&&($part['FAIfsType']!="swap")){
+      if((in_array_strict($part['FAImountPoint'],$alreadyUsed['FAImountPoint']))&&($part['FAIfsType']!="swap")){
         $message[]=sprintf(_("please enter a unique mount point for partition %s"),($key));
       }
 
@@ -365,7 +365,7 @@ class faiPartitionTableEntry extends plugin
         }
       }
       if($part['FAIfsType'] == "swap"){
-        if(in_array($part['FAIfsType'],$alreadyUsed['FAIfsType'])){
+        if(in_array_strict($part['FAIfsType'],$alreadyUsed['FAIfsType'])){
           $message[]=sprintf(_("File system type 'swap' is already used, change file system type for partition %s."),$key);
         }
       }