diff options
author | Brice Maron <brice@bmaron.net> | 2012-05-10 19:50:47 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-05-10 19:51:03 +0000 |
commit | 4094f6f8e09b7bfac4d010e2409b7f9d2c36a991 (patch) | |
tree | 3dc0fc3c0d79be9e0a2b5b2217e78787990aed29 /apps | |
parent | d1e5a56bc6b7c7d5686e1ae9949ccea270a1477a (diff) | |
download | nextcloud-server-4094f6f8e09b7bfac4d010e2409b7f9d2c36a991.tar.gz nextcloud-server-4094f6f8e09b7bfac4d010e2409b7f9d2c36a991.zip |
Correct undef variable mistake from prev commit
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/calendar/ajax/events.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php index 0618c0f3fdf..f149e0d400e 100755 --- a/apps/calendar/ajax/events.php +++ b/apps/calendar/ajax/events.php @@ -19,12 +19,13 @@ if($calendar_id !== false){ OCP\JSON::error(); exit; } - $start = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['start']):new DateTime('@' . $_GET['start']); - $end = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['end']):new DateTime('@' . $_GET['end']); } else { $calendar_id = $_GET['calendar_id']; } + +$start = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['start']):new DateTime('@' . $_GET['start']); +$end = (version_compare(PHP_VERSION, '5.3.0', '>='))?DateTime::createFromFormat('U', $_GET['end']):new DateTime('@' . $_GET['end']); $events = OC_Calendar_App::getrequestedEvents($calendar_id, $start, $end); $output = array(); |