From b8d724099f4af4eed3939894b90da0d8acc7827e Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 17:12:20 +0100 Subject: [PATCH] [fix] --- lib/mfrc522/source/loop.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index f80eb57..149e0ef 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -135,7 +135,7 @@ $grantedFor = []; /* (2) Search an action the user can perform in the list */ - foreach($actionlist as $id_action=>$acttion){ + foreach($actionlist as $id_action=>$action){ /* (3) If have permission -> add to list */ if( in_array($id_action, $user['can']) ) @@ -192,7 +192,7 @@ } /* (7) Extract corresponding action */ - $action = $grantedFor[$toPerform]; + $action = $actionlist[$toPerform]; var_dump($action);