From 7af78c77a9163092499e4baf211b5dcaa28381fe Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 6 Jan 2010 13:29:41 +0000 Subject: [PATCH] Fixed problem with not copyable disks ... took me about an hour .. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15085 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 e82838b29..ae642c3b9 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc @@ -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])){ -- 2.30.2