Quellcode durchsuchen

Add error check for Entry and Exit times

Alan Lam vor 8 Jahren
Ursprung
Commit
e71fa56f28
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      controllers/test.php

+ 3 - 0
controllers/test.php

@@ -77,6 +77,9 @@ if(Core::$user->level == User::LEVEL_TESTER) {
 							if($end_unix < $recorded_start_unix) $form_exception->addError("Exit Time cannot be later than the recorded Entry Time.");
 						}
 					}
+					else {
+						$form_exception->addError("Entry Time and Exit Time must be filled in.");
+					}
 
 				}