diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-05 18:47:26 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-05 18:48:24 +0200 |
commit | 24a8451b2efed0f1e5c4e3b0647a54940fd5975c (patch) | |
tree | bc96955a409fbcf27c6e667120baecb8a22956cf /apps/tasks/ajax | |
parent | 101406eba7b8c3aed56f80519ef81d76e681d209 (diff) | |
download | nextcloud-server-24a8451b2efed0f1e5c4e3b0647a54940fd5975c.tar.gz nextcloud-server-24a8451b2efed0f1e5c4e3b0647a54940fd5975c.zip |
Tasks: Fix addtask for <5.4 php version
Diffstat (limited to 'apps/tasks/ajax')
-rw-r--r-- | apps/tasks/ajax/addtask.php | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |