Tasks: Fix addtask for <5.4 php version
This commit is contained in:
parent
101406eba7
commit
24a8451b2e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue