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);