Avoid error if customfield does not have private

This commit is contained in:
nathan 2022-11-16 14:05:37 -07:00
parent fc76b1574f
commit 6787c1ad98

View File

@ -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)