From 1fdf81c50bfd4b26f5540355f82d2e91abf1c0e6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 6 Apr 2023 00:34:12 +0200 Subject: [PATCH] fix log count only --- src/ManageVars.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ManageVars.php b/src/ManageVars.php index 5975e81..e3c2e8d 100644 --- a/src/ManageVars.php +++ b/src/ManageVars.php @@ -50,7 +50,8 @@ class ManageVars try { $this->logs = dcCore::app()->log->getLogs($params); - $this->list = new BackendList($this->logs, $this->logs->count()); + $count = (int) dcCore::app()->log->getLogs($params, true)->f(0); + $this->list = new BackendList($this->logs, $count); } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); }