Code

Allow open end for parition size
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 08:06:34 +0000 (08:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 08:06:34 +0000 (08:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6643 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTableEntry.inc

index df6cede2d1cb7d8cdea49877b152575cf3e5ee25..625798172f048c9b313ce721ed75aac203e111ee 100644 (file)
@@ -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));