mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Silence "PHP Warning: count(): Parameter must be an array or an object that implements Countable"
This commit is contained in:
parent
8bb4f56149
commit
320a96037f
@ -578,7 +578,7 @@ class calendar_ical extends calendar_boupdate
|
|||||||
$organizerUID = $event['owner'];
|
$organizerUID = $event['owner'];
|
||||||
}
|
}
|
||||||
// do NOT use ORGANIZER for events without further participants or a different organizer
|
// do NOT use ORGANIZER for events without further participants or a different organizer
|
||||||
if (count($event['participants']) > 1 || !isset($event['participants'][$event['owner']]) || $event['owner'] != $this->user)
|
if (is_array($event['participants']) && (count($event['participants']) > 1 || !isset($event['participants'][$event['owner']])) || $event['owner'] != $this->user)
|
||||||
{
|
{
|
||||||
$attributes['ORGANIZER'] = $organizerURL;
|
$attributes['ORGANIZER'] = $organizerURL;
|
||||||
$parameters['ORGANIZER']['CN'] = $organizerCN;
|
$parameters['ORGANIZER']['CN'] = $organizerCN;
|
||||||
|
Loading…
Reference in New Issue
Block a user