mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Function calendar_ical.aggregate_periods() returns only the last event
This commit is contained in:
parent
376be571ba
commit
64c1c126c0
@ -3300,9 +3300,9 @@ class calendar_ical extends calendar_boupdate
|
||||
// sort by start datetime
|
||||
uasort($events, function($a, $b)
|
||||
{
|
||||
$diff = $a['start'] < $b['start'];
|
||||
$diff = $a['start'] - $b['start'];
|
||||
|
||||
return !$diff ? 0 : ($diff < 0 ? -1 : 1);
|
||||
return $diff == 0 ? 0 : ($diff < 0 ? -1 : 1);
|
||||
});
|
||||
|
||||
$fbdata = array();
|
||||
|
Loading…
Reference in New Issue
Block a user