Browse Source

Add error check for Entry and Exit times

Alan Lam 8 năm trước cách đây
mục cha
commit
e71fa56f28
1 tập tin đã thay đổi với 3 bổ sung và 0 xóa
  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.");
+					}
 
 				}