From 99ee28d51bf3b927e3a49f7ac8a425d2f58d0a48 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 16:30:34 +0100 Subject: [PATCH] [fix] var name #2 --- lib/mfrc522/source/loop.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index 52be934..1dc44b7 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -294,15 +294,15 @@ /* (1) Check file */ $gstate = $f_gstate->current(); - if( $f_gstate === false ) + if( !$gstate ) return 127; - /* (2) Remove surrounding spaces */ - $f_gstate = preg_replace('@^\s+@', '', $f_gstate); - $f_gstate = preg_replace('@\s+$@', '', $f_gstate); + /* (3) Remove surrounding spaces */ + $gstate = preg_replace('@^\s+@', '', $gstate); + $gstate = preg_replace('@\s+$@', '', $gstate); - /* (3) Manage error */ - if( strlen($state) < 1 ) + /* (4) Manage error */ + if( strlen($gstate) < 1 ) return 127; return 0;