Calendar: Use array_merge to join event arrays
This commit is contained in:
parent
01da64caf7
commit
1fef13b0c0
|
@ -19,6 +19,6 @@ $events = OC_Calendar_App::getrequestedEvents($_GET['calendar_id'], $start, $end
|
||||||
|
|
||||||
$output = array();
|
$output = array();
|
||||||
foreach($events as $event){
|
foreach($events as $event){
|
||||||
$output = $output + OC_Calendar_App::generateEventOutput($event, $start, $end);
|
$output = array_merge($output, OC_Calendar_App::generateEventOutput($event, $start, $end));
|
||||||
}
|
}
|
||||||
OCP\JSON::encodedPrint($output);
|
OCP\JSON::encodedPrint($output);
|
||||||
|
|
Loading…
Reference in New Issue