[Fix] while loops negate condition

This commit is contained in:
xdrm-brackets 2017-02-23 15:35:13 +01:00
parent 3d0002a1a0
commit 9f7da3f040
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
$f_auth->seek(0); $f_auth->seek(0);
/* (2) Parse each line */ /* (2) Parse each line */
while( $f_auth->eof() ){ while( !$f_auth->eof() ){
/* (3) Try to parse line */ /* (3) Try to parse line */
$parsed = json_decode($f_auth->fgets(), true); $parsed = json_decode($f_auth->fgets(), true);
@ -235,7 +235,7 @@
/* [2] Parse ACTIONS and cache them /* [2] Parse ACTIONS and cache them
=========================================================*/ =========================================================*/
/* (1) Parse each line */ /* (1) Parse each line */
while( $f_actions->eof() ){ while( !$f_actions->eof() ){
/* (2) Try to parse line */ /* (2) Try to parse line */
$parsed = json_decode($f_actions->fgets(), true); $parsed = json_decode($f_actions->fgets(), true);