Просмотр исходного кода

Add error check for Entry and Exit times

Alan Lam 8 лет назад
Родитель
Сommit
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.");
 							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.");
+					}
 
 
 				}
 				}