]> git.mxchange.org Git - friendica-addons.git/commitdiff
Issue 3636: Avoid warning messages
authorMichael <heluecht@pirati.ca>
Sun, 20 Aug 2017 20:51:07 +0000 (20:51 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 Aug 2017 20:51:07 +0000 (20:51 +0000)
pumpio/pumpio.php

index 1153000d7a2d7165b8f786edb8a5f6842f5f2979..8d11c02856dc9a7587ea9939e11b1cf41ce563fa 100644 (file)
@@ -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) {