From: Michael Date: Wed, 1 Aug 2018 19:14:28 +0000 (+0000) Subject: We should quit on not getting data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0d7330b458fefd4808ae5d01a05e4a36dfdde49;p=friendica-addons.git We should quit on not getting data --- diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 501c8446..3bc03efa 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1387,6 +1387,10 @@ function pumpio_getallusers(App &$a, $uid) $success = false; } + if (empty($users)) { + return; + } + if ($users->totalItems > count($users->items)) { $url = 'https://'.$hostname.'/api/user/'.$username.'/following?count='.$users->totalItems;