From 24a8451b2efed0f1e5c4e3b0647a54940fd5975c Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Sat, 5 May 2012 18:47:26 +0200 Subject: Tasks: Fix addtask for <5.4 php version --- apps/tasks/ajax/addtask.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/tasks/ajax') diff --git a/apps/tasks/ajax/addtask.php b/apps/tasks/ajax/addtask.php index 891fbdb96df..d6e313bd089 100644 --- a/apps/tasks/ajax/addtask.php +++ b/apps/tasks/ajax/addtask.php @@ -5,7 +5,8 @@ OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('tasks'); $calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser(), true); -$cid = reset($calendars)['id']; +$first_calendar = reset($calendars); +$cid = $first_calendar['id']; $input = $_GET['text']; $request = array(); -- cgit v1.2.3