From 6787c1ad98ef34f30622a457affbe8dc1edb9fa1 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 16 Nov 2022 14:05:37 -0700 Subject: [PATCH] Avoid error if customfield does not have private --- api/src/Storage/Customfields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)