Fix empty accounts[] bug

This commit is contained in:
Philipp 2022-01-02 23:05:12 +01:00
parent c1f2e391b0
commit 9c8d9e83ac
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View file

@ -73,6 +73,8 @@ class Following extends BaseApi
$params['order'] = ['cid']; $params['order'] = ['cid'];
} }
$accounts = [];
$followers = DBA::select('contact-relation', ['cid'], $condition, $params); $followers = DBA::select('contact-relation', ['cid'], $condition, $params);
while ($follower = DBA::fetch($followers)) { while ($follower = DBA::fetch($followers)) {
self::setBoundaries($follower['cid']); self::setBoundaries($follower['cid']);