From a4ba270bf5bac4cc32dcd3233e3b790b147d0910 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Aug 2009 12:08:23 +0000 Subject: [PATCH] Fixed saving of fai partition entries. -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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc index 4caa07c09..68fa8addf 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc @@ -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(); } -- 2.30.2