summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-13 15:06:02 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-13 15:06:02 +0200
commit62a86748b58d37bf308f3d747389ead816c5c03c (patch)
treef1c62c9ed157739b0a4373506379ffa2fee882df /apps/calendar/ajax
parent63a1b066bcebc998bd4a6a4c8cc56f38983b0639 (diff)
parent5ac10a9c0eecfa6fe49c314954c506972f275e24 (diff)
downloadnextcloud-server-62a86748b58d37bf308f3d747389ead816c5c03c.tar.gz
nextcloud-server-62a86748b58d37bf308f3d747389ead816c5c03c.zip
Merge branch 'master' into calendar_dropimport
Diffstat (limited to 'apps/calendar/ajax')
-rwxr-xr-xapps/calendar/ajax/event/new.form.php1
-rwxr-xr-xapps/calendar/ajax/events.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/calendar/ajax/event/new.form.php b/apps/calendar/ajax/event/new.form.php
index f47cb6c3e2a..91b85fff07f 100755
--- a/apps/calendar/ajax/event/new.form.php
+++ b/apps/calendar/ajax/event/new.form.php
@@ -57,6 +57,7 @@ $tmpl->assign('repeat_byweekno_options', $repeat_byweekno_options);
$tmpl->assign('repeat_bymonthday_options', $repeat_bymonthday_options);
$tmpl->assign('repeat_weekofmonth_options', $repeat_weekofmonth_options);
+$tmpl->assign('eventid', 'new');
$tmpl->assign('startdate', $start->format('d-m-Y'));
$tmpl->assign('starttime', $start->format('H:i'));
$tmpl->assign('enddate', $end->format('d-m-Y'));
diff --git a/apps/calendar/ajax/events.php b/apps/calendar/ajax/events.php
index f149e0d400e..56fa51aaff2 100755
--- a/apps/calendar/ajax/events.php
+++ b/apps/calendar/ajax/events.php
@@ -15,7 +15,7 @@ OCP\JSON::checkAppEnabled('calendar');
// Look for the calendar id
$calendar_id = OC_Calendar_App::getCalendar($_GET['calendar_id'], false, false);
if($calendar_id !== false){
- if(! is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser()){
+ if(! is_numeric($calendar_id['userid']) && $calendar_id['userid'] != OCP\User::getUser()){
OCP\JSON::error();
exit;
}