issue error if to is before from date

This commit is contained in:
Uwe Steinmann 2014-04-01 11:12:54 +02:00
parent 134bcd025d
commit 0d61fc80ec

View File

@ -60,7 +60,8 @@ if(isset($_POST["to"])) {
}
if ($to<=$from){
$to = $from + 86400 -1;
// $to = $from + 86400 -1;
UI::exitError(getMLText("add_event"),getMLText("to_before_from"));
}
$res = addEvent($from, $to, $name, $comment);