]> git.mxchange.org Git - friendica-addons.git/commitdiff
We should quit on not getting data
authorMichael <heluecht@pirati.ca>
Wed, 1 Aug 2018 19:14:28 +0000 (19:14 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 1 Aug 2018 19:14:28 +0000 (19:14 +0000)
pumpio/pumpio.php

index 501c844607514ff093a0f86d630e02721ef71931..3bc03efa06d4f50d6604719e6059881bcfe74e87 100644 (file)
@@ -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;