mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:34 +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
|
// sort by start datetime
|
||||||
uasort($events, function($a, $b)
|
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();
|
$fbdata = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user