Code

Fixed saving of fai partition entries.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Aug 2009 12:08:23 +0000 (12:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Aug 2009 12:08:23 +0000 (12:08 +0000)
-Only save numerical indices.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13980 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 4caa07c09d8c025fc930c6402cd242d6e7735a89..68fa8addf18ee1c928658f0fd4cb5ca2a619c46d 100644 (file)
@@ -560,7 +560,11 @@ class faiPartitionTable extends plugin
           }
         }else{
           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{
             $disk_attrs[$attr] = array();
           }