Code

Fixed problem with not copyable disks ... took me about an hour ..
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jan 2010 13:29:41 +0000 (13:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jan 2010 13:29:41 +0000 (13:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15085 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc

index e82838b291f3097ca640049ec46e334975d996f7..ae642c3b9b249ce8613e4caeddb0e29fb0fc8975 100644 (file)
@@ -554,7 +554,11 @@ class faiPartitionTable extends plugin
         if($disk['status'] == "new"){
           if(isset($disk_attrs[$attr])) unset($disk_attrs[$attr]);
           if(isset($disk[$attr]) && !empty($disk[$attr])){
-            $disk_attrs[$attr] = $disk[$attr];
+            if(is_array($disk[$attr])){
+              $disk_attrs[$attr] = array_values($disk[$attr]);
+            }else{
+              $disk_attrs[$attr] = $disk[$attr];
+            }
           }
         }else{
           if(isset($disk[$attr]) && !empty($disk[$attr])){