فهرست منبع

Add error check for Entry and Exit times

Alan Lam 8 سال پیش
والد
کامیت
e71fa56f28
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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.");
+					}
 
 				}