From 1f878571969a5d17edccbd99275c8e7a8e6d5157 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Jun 2007 08:06:34 +0000 Subject: [PATCH] Allow open end for parition size git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6643 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPartitionTableEntry.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.30.2