]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Core/MailingHistory.php
Fix pagination; closes #1732
[galette.git] / galette / lib / Galette / Core / MailingHistory.php
index 413fdbc35b8c3ced010eda790e0f9963cd001caa..d31a13d473aada48e7dfefb121e67126ace32db9 100644 (file)
@@ -275,9 +275,7 @@ class MailingHistory extends History
 
             $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 history | ' . $e->getMessage(),