From 582e5d9bcc0dc697c34aeb160ffb35578a585938 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 20 Aug 2017 20:51:07 +0000 Subject: [PATCH] Issue 3636: Avoid warning messages --- pumpio/pumpio.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) { -- 2.39.5