diff options
-rw-r--r-- | log/logiterator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/log/logiterator.php b/log/logiterator.php index 28564f2..703680a 100644 --- a/log/logiterator.php +++ b/log/logiterator.php @@ -68,8 +68,8 @@ class LogIterator implements \Iterator { while ($this->position >= 0) { fseek($this->handle, $this->position); $ch = fgetc($this->handle); - if ($ch == "\n" || $this->position === 0) { - if ($line != '') { + if ($ch === "\n" || $this->position === 0) { + if ($line !== '') { // Add the first character if at the start of the file, // because it doesn't hit the else in the loop if ($this->position === 0) { |