From 9f7da3f040e6473482d16484de8f5b7f4b638610 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 15:35:13 +0100 Subject: [PATCH] [Fix] while loops negate condition --- lib/mfrc522/source/loop.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index e6a48a7..3de1ffc 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -37,7 +37,7 @@ $f_auth->seek(0); /* (2) Parse each line */ - while( $f_auth->eof() ){ + while( !$f_auth->eof() ){ /* (3) Try to parse line */ $parsed = json_decode($f_auth->fgets(), true); @@ -235,7 +235,7 @@ /* [2] Parse ACTIONS and cache them =========================================================*/ /* (1) Parse each line */ - while( $f_actions->eof() ){ + while( !$f_actions->eof() ){ /* (2) Try to parse line */ $parsed = json_decode($f_actions->fgets(), true);