We should quit on not getting data

pull/681/head
Michael 2018-08-01 19:14:28 +00:00
parent 74353e7f2d
commit c0d7330b45
1 changed files with 4 additions and 0 deletions

View File

@ -1387,6 +1387,10 @@ function pumpio_getallusers(App &$a, $uid)
$success = false; $success = false;
} }
if (empty($users)) {
return;
}
if ($users->totalItems > count($users->items)) { if ($users->totalItems > count($users->items)) {
$url = 'https://'.$hostname.'/api/user/'.$username.'/following?count='.$users->totalItems; $url = 'https://'.$hostname.'/api/user/'.$username.'/following?count='.$users->totalItems;