diff --git a/lib/Cake/Console/Command/AclShell.php b/lib/Cake/Console/Command/AclShell.php index 3e1ba5b8d41..1f172e14d6d 100644 --- a/lib/Cake/Console/Command/AclShell.php +++ b/lib/Cake/Console/Command/AclShell.php @@ -576,12 +576,9 @@ protected function _getParams() { if (is_string($aco)) { $aco = $this->parseIdentifier($aco); } - $action = null; - if (isset($this->args[2])) { + $action = '*'; + if (isset($this->args[2]) && !in_array($this->args[2], array('', 'all'))) { $action = $this->args[2]; - if ($action == '' || $action == 'all') { - $action = '*'; - } } return compact('aro', 'aco', 'action', 'aroName', 'acoName'); }