Skip to content

Commit 72d81dd

Browse files
committed
fix repeating of last log line
1 parent 916cf58 commit 72d81dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/logcontroller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function responseFromIterator(\Iterator $iterator, $count, $offset) {
6060
$iterator->next();
6161
}
6262
$data = [];
63-
for ($i = 0; $i < $count; $i++) {
63+
for ($i = 0; $i < $count && $iterator->valid(); $i++) {
6464
$line = $iterator->current();
6565
if (!is_null($line)) {
6666
$data[] = $line;

0 commit comments

Comments
 (0)