From: cajus Date: Fri, 1 Aug 2008 07:57:56 +0000 (+0000) Subject: Fixed saving of open end partitions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=773bd4af9fab1da2f1cd185dc15c59ea457fa4ad;p=gosa.git Fixed saving of open end partitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12088 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc index 82be75525..caee87bdd 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc @@ -419,9 +419,9 @@ class faiPartitionTableEntry extends plugin break; case 2: - if((!tests::is_id($tmp[0]))&&(!tests::is_id($tmp[1])) &&(!empty($tmp[1]))){ + if( !tests::is_id($tmp[0]) && !tests::is_id($tmp[1]) && !empty($tmp[1]) ){ $message[]= msgPool::invalid(sprintf(_("partition %s size"),$key)); - }elseif($tmp[0]>=$tmp[1]){ + }elseif(!empty($tmp[1]) && $tmp[0]>=$tmp[1]){ $message[]= msgPool::invalid(sprintf(_("partition %s size"),$key)); } break;