Skip to content

Commit 1d74f11

Browse files
committed
use tripple equals
1 parent 2e5b36a commit 1d74f11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log/logiterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function next() {
6868
while ($this->position >= 0) {
6969
fseek($this->handle, $this->position);
7070
$ch = fgetc($this->handle);
71-
if ($ch == "\n" || $this->position === 0) {
72-
if ($line != '') {
71+
if ($ch === "\n" || $this->position === 0) {
72+
if ($line !== '') {
7373
// Add the first character if at the start of the file,
7474
// because it doesn't hit the else in the loop
7575
if ($this->position === 0) {

0 commit comments

Comments
 (0)