From a7a94d5307cdd8d7018b881a65c6db244d4dd50a Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 16 Aug 2023 09:37:52 +0200 Subject: [PATCH] FileReader: Method `count()` require no param --- library/Icinga/Protocol/File/FileReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Protocol/File/FileReader.php b/library/Icinga/Protocol/File/FileReader.php index d16038741..a06494c0e 100644 --- a/library/Icinga/Protocol/File/FileReader.php +++ b/library/Icinga/Protocol/File/FileReader.php @@ -129,7 +129,7 @@ class FileReader implements Selectable, Countable } $lines = array(); if ($query->sortDesc()) { - $count = $this->count($query); + $count = $this->count(); if ($count <= $skip) { return $lines; } elseif ($count < ($skip + $read)) {