mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Avoid error if customfield does not have private
This commit is contained in:
parent
fc76b1574f
commit
6787c1ad98
@ -457,7 +457,7 @@ class Customfields implements \IteratorAggregate
|
||||
$type = 'add';
|
||||
}
|
||||
$accounts = Push::ALL;
|
||||
if(count($cf['private']) > 0)
|
||||
if(is_array($cf['private']) && count($cf['private']) > 0)
|
||||
{
|
||||
$accounts = [];
|
||||
foreach($cf['private'] as $account_id)
|
||||
|
Loading…
Reference in New Issue
Block a user