]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Repository/SavedSearches.php
Fix pagination; closes #1732
[galette.git] / galette / lib / Galette / Repository / SavedSearches.php
index e3ccf66d146e598a38ef97df649ebf24dfd217da..b271ea754ea71983e1e67c47f713a391556de024 100644 (file)
@@ -191,10 +191,7 @@ class SavedSearches
 
             $k = self::PK;
             $this->count = $result->$k;
-
-            if ($this->count > 0) {
-                $this->filters->setCounter($this->count);
-            }
+            $this->filters->setCounter($this->count);
         } catch (Throwable $e) {
             Analog::log(
                 'Cannot count saved searches | ' . $e->getMessage(),