diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index d7fa994..9f94774 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -263,7 +263,7 @@ /* (1) Read accesses */ $f_auth = new SplFileObject(AUTH_CONF, 'r'); $f_actions = new SplFileObject(ACTIONS_CONF, 'r'); - $f_gstate = new SplFileObject(STATE_CONF, 'w'); + $f_gstate = new SplFileObject(STATE_CONF, 'r+'); /* (2) Append accesses (logs) */ $f_accesslog = new SplFileObject(DEFAULT_DATA, 'a');