mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +00:00
Fix notices
See https://github.com/friendica/friendica/issues/9749#issuecomment-774666356 and https://github.com/friendica/friendica/issues/9747#issuecomment-785262156
This commit is contained in:
parent
43c6563123
commit
5d61599964
2 changed files with 10 additions and 5 deletions
|
@ -359,6 +359,9 @@ class Community extends BaseModule
|
|||
$r = Post::selectThreadForUser(0, ['uri-id', 'commented', 'author-link'], $condition, $params);
|
||||
|
||||
$items = Post::toArray($r);
|
||||
if (empty($items)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
// Previous page case: once we get the relevant items closest to min_id, we need to restore the expected display order
|
||||
if (empty($item_id) && isset($min_id) && !isset($max_id)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue