Changeset 1020
- Timestamp:
- 07/13/08 12:38:54 (4 months ago)
- Files:
-
- trunk/swisscenter/config/config_sched.php (modified) (1 diff)
- trunk/swisscenter/lang/en/en.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swisscenter/config/config_sched.php
r937 r1020 311 311 function sched_update_linux() 312 312 { 313 $hrs = $_REQUEST["hour"];313 $hrs = ($_REQUEST["hour"] =='' ? '*' : $_REQUEST["hour"]); 314 314 $mins = $_REQUEST["minute"]; 315 $dates = $_REQUEST["date"];316 $months = $_REQUEST["month"];317 $days = $_REQUEST["day"];315 $dates = ($_REQUEST["date"] =='' ? '*' : $_REQUEST["date"]); 316 $months = ($_REQUEST["month"]=='' ? '*' : $_REQUEST["month"]); 317 $days = ($_REQUEST["day"] =='' ? '*' : $_REQUEST["day"]); 318 318 319 319 if ( preg_match("/[^-,*0123456789]/",($hrs.$mins.$dates.$months.$days)) != 0) 320 320 sched_display('!'.str('SCHEDULE_ERROR_CHARS','"0123456789-,*"')); 321 elseif ($ hrs == '' || $mins == '' || $dates == '' || $months == '' || $days == '')321 elseif ($mins == '') 322 322 sched_display('!'.str('SCHEDULE_ERROR_FIELDS')); 323 323 else trunk/swisscenter/lang/en/en.xml
r1018 r1020 3170 3170 <string> 3171 3171 <id>SCHEDULE_ERROR_FIELDS</id> 3172 <text>You must specify a value for every field</text>3173 <version>1. 19</version>3172 <text>You must always specify a value for the minute</text> 3173 <version>1.20.1</version> 3174 3174 </string> 3175 3175 <string>