Skip to content
Snippets Groups Projects
Commit 24a8451b authored by Bart Visscher's avatar Bart Visscher
Browse files

Tasks: Fix addtask for <5.4 php version

parent 101406eb
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ OCP\JSON::checkLoggedIn(); ...@@ -5,7 +5,8 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('tasks'); OCP\JSON::checkAppEnabled('tasks');
$calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser(), true); $calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser(), true);
$cid = reset($calendars)['id']; $first_calendar = reset($calendars);
$cid = $first_calendar['id'];
$input = $_GET['text']; $input = $_GET['text'];
$request = array(); $request = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment