From: Michael Date: Sun, 20 Aug 2017 20:51:07 +0000 (+0000) Subject: Issue 3636: Avoid warning messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=582e5d9bcc0dc697c34aeb160ffb35578a585938;p=friendica-addons.git Issue 3636: Avoid warning messages --- diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 1153000d..8d11c028 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1407,8 +1407,11 @@ function pumpio_getallusers(&$a, $uid) { $success = false; } - foreach ($users->items AS $user) - pumpio_get_contact($uid, $user); + if (is_array($users->items)) { + foreach ($users->items AS $user) { + pumpio_get_contact($uid, $user); + } + } } function pumpio_queue_hook(&$a,&$b) {