From: hickert Date: Wed, 6 Jan 2010 13:29:41 +0000 (+0000) Subject: Fixed problem with not copyable disks ... took me about an hour .. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7af78c77a9163092499e4baf211b5dcaa28381fe;p=gosa.git 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 --- 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])){