mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
FileReader: Method count()
require no param
This commit is contained in:
parent
bdd50bd97d
commit
a7a94d5307
@ -129,7 +129,7 @@ class FileReader implements Selectable, Countable
|
|||||||
}
|
}
|
||||||
$lines = array();
|
$lines = array();
|
||||||
if ($query->sortDesc()) {
|
if ($query->sortDesc()) {
|
||||||
$count = $this->count($query);
|
$count = $this->count();
|
||||||
if ($count <= $skip) {
|
if ($count <= $skip) {
|
||||||
return $lines;
|
return $lines;
|
||||||
} elseif ($count < ($skip + $read)) {
|
} elseif ($count < ($skip + $read)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user