Code

Allow open end for partition table size
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 08:05:52 +0000 (08:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 08:05:52 +0000 (08:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6642 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTableEntry.inc

index e6d42279c115c6aa0e0c316b775a8a70bbca5d68..76d2fcb5864987b2524379856fcebef0cd51a77e 100644 (file)
@@ -388,9 +388,9 @@ class faiPartitionTableEntry extends plugin
                 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]){
+                }elseif($tmp[0]>=$tmp[1] &&(!empty($tmp[1]))){
                   $message[]=sprintf(_("Please enter a valid range for partition %s."),($key));
                 }
                 break;