Skip to content

Commit

Permalink
use tripple equals
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Aug 9, 2015
1 parent 2e5b36a commit 1d74f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log/logiterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function next() {
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) {
Expand Down

0 comments on commit 1d74f11

Please sign in to comment.