]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Conversation/Community.php
Fix notices
[friendica.git] / src / Module / Conversation / Community.php
index 6a96bb79c5de855d945961486847007e4f44fe31..18332fe27e4cf1f5c4f20cee45e1aca654e74007 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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)) {