From 3f2ec43c7edd23c2791a3b8595b4783e00bf616d Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 16:46:54 +0100 Subject: [PATCH] [fix] --- lib/mfrc522/source/loop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');