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);