From c0d7330b458fefd4808ae5d01a05e4a36dfdde49 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 1 Aug 2018 19:14:28 +0000 Subject: [PATCH] We should quit on not getting data --- pumpio/pumpio.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5