Added more tests
authorJoey Schulze <joey@infodrom.org>
Sat, 8 Jun 2002 09:58:53 +0000 (09:58 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 8 Jun 2002 09:58:53 +0000 (09:58 +0000)
src/LinuxTag/2002/supporter/update.wml

index 5a9fbc8..949b196 100644 (file)
 
          # Calculate min. and max. people required
          #
-         $foo = explode ("-", $GLOBALS["minmax".$append]);
-         $min = $foo[0];
-         $max = $foo[1];
-         if ($max < $min) { $max = $min; }
+         if (strlen ($GLOBALS["minmax".$append]) > 0 && strlen ($GLOBALS["timeframe".$append]) > 0) {
+           $foo = explode ("-", $GLOBALS["minmax".$append]);
+           $min = $foo[0];
+           $max = $foo[1];
+           if ($max < $min) { $max = $min; }
+         } else {
+           $min = 0;
+         }
 
          if ($min > 0) {
            $fromto = split_timeframe ($GLOBALS["timeframe".$append]);