Skip to content
Snippets Groups Projects
Commit ed2041aa authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Moritz Strohm
Browse files

do not use intval

parent da9e7058
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ class Calendar_DateController extends AuthenticatedController
} elseif (Request::submitted('defaultDate')) {
$date_parts = explode('-', Request::get('defaultDate'));
if (count($date_parts) === 3) {
$time->setDate(intval($date_parts[0]), intval($date_parts[1]), intval($date_parts[2]));
$time->setDate($date_parts[0], $date_parts[1], $date_parts[2]);
}
}
$time = $time->add(new DateInterval('PT1H'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment