Tasks: Fix addtask for <5.4 php version
This commit is contained in:
parent
101406eba7
commit
24a8451b2e
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue