summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-05-10 19:50:47 +0000
committerBrice Maron <brice@bmaron.net>2012-05-10 19:51:03 +0000
commit4094f6f8e09b7bfac4d010e2409b7f9d2c36a991 (patch)
tree3dc0fc3c0d79be9e0a2b5b2217e78787990aed29 /apps
parentd1e5a56bc6b7c7d5686e1ae9949ccea270a1477a (diff)
downloadnextcloud-server-4094f6f8e09b7bfac4d010e2409b7f9d2c36a991.tar.gz
nextcloud-server-4094f6f8e09b7bfac4d010e2409b7f9d2c36a991.zip
Correct undef variable mistake from prev commit
Diffstat (limited to 'apps')
-rwxr-xr-xapps/calendar/ajax/events.php5
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();