fix log count only

This commit is contained in:
Jean-Christian Paul Denis 2023-04-06 00:34:12 +02:00
parent 5334bfa884
commit 1fdf81c50b
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -50,7 +50,8 @@ class ManageVars
try { try {
$this->logs = dcCore::app()->log->getLogs($params); $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) { } catch (Exception $e) {
dcCore::app()->error->add($e->getMessage()); dcCore::app()->error->add($e->getMessage());
} }