Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/logreader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-08-09 16:46:33 +0300
committerRobin Appelman <icewind@owncloud.com>2015-08-09 16:46:33 +0300
commit1d74f11df6ca6f97b2e6aceb59bd856faaa15038 (patch)
tree69584be33d88f80d2b67463f50adf88474615533
parent2e5b36aeefd749e0c387970342790fddbb417f16 (diff)
use tripple equalsv1.0.0
-rw-r--r--log/logiterator.php4
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) {