From: hickert Date: Thu, 21 Jun 2007 08:06:34 +0000 (+0000) Subject: Allow open end for parition size X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1f878571969a5d17edccbd99275c8e7a8e6d5157;p=gosa.git Allow open end for parition size git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6643 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPartitionTableEntry.inc b/plugins/admin/fai/class_faiPartitionTableEntry.inc index df6cede2d..625798172 100644 --- a/plugins/admin/fai/class_faiPartitionTableEntry.inc +++ b/plugins/admin/fai/class_faiPartitionTableEntry.inc @@ -411,13 +411,13 @@ class faiPartitionTableEntry extends plugin $message[]= sprintf(_("Please enter a valid partition size for partition %s."),($key)); break; case 1: - if (!is_id(is_id($tmp[0]))){ + if (!is_id(is_id($tmp[0])) &&(!empty($tmp[1]))){ $message[]= sprintf(_("Please enter a valid partition size for partition %s."),($key)); } break; case 2: - if((!is_id($tmp[0]))&&(!is_id($tmp[1]))){ + if((!is_id($tmp[0]))&&(!is_id($tmp[1])) &&(!empty($tmp[1]))){ $message[]=sprintf(_("Please enter a valid range for partition %s."),($key)); }elseif($tmp[0]>=$tmp[1]){ $message[]=sprintf(_("Please enter a valid range for partition %s."),($key));