mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 20:08:34 +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';
|
$type = 'add';
|
||||||
}
|
}
|
||||||
$accounts = Push::ALL;
|
$accounts = Push::ALL;
|
||||||
if(count($cf['private']) > 0)
|
if(is_array($cf['private']) && count($cf['private']) > 0)
|
||||||
{
|
{
|
||||||
$accounts = [];
|
$accounts = [];
|
||||||
foreach($cf['private'] as $account_id)
|
foreach($cf['private'] as $account_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user