]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/filteringnoticestream.php
If you search for a tag, redirect to tag page
[quix0rs-gnu-social.git] / lib / filteringnoticestream.php
index a3bdc08af697746be4c663a78b99d89896a6252a..96b9432fc152bacddb80ad4f42d3e246dd9bbc88 100644 (file)
@@ -84,7 +84,7 @@ abstract class FilteringNoticeStream extends NoticeStream
             while ($raw->fetch()) {
                 if ($this->filter($raw)) {
                     $filtered[] = clone($raw);
-                    if (count($filtered >= $total)) {
+                    if (count($filtered) >= $total) {
                         break;
                     }
                 }
@@ -107,7 +107,7 @@ abstract class FilteringNoticeStream extends NoticeStream
         $ids = array();
 
         while ($notices->fetch()) {
-            $ids[] = $notice->id;
+            $ids[] = $notices->id;
         }
 
         return $ids;