diff --git a/api/src/Storage/Customfields.php b/api/src/Storage/Customfields.php index 09259335c3..83942a547b 100644 --- a/api/src/Storage/Customfields.php +++ b/api/src/Storage/Customfields.php @@ -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)