From 79147c297f6e6a155a37f2aef78684dd3ce14077 Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 9 Jul 2007 03:49:00 +0000 Subject: [PATCH] Adding fix for #2880, using the acl cli help command would return list of all commands instead of individual commands git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5415 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/acl.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cake/console/libs/acl.php b/cake/console/libs/acl.php index e5f313c5e..6ee1eb59c 100644 --- a/cake/console/libs/acl.php +++ b/cake/console/libs/acl.php @@ -421,14 +421,14 @@ class AclShell extends Shell { ); $this->out($head); - if (!isset($this->args[1])) { + if (!isset($this->args[0])) { foreach ($commands as $cmd) { $this->out("{$cmd}\n\n"); } - } elseif (isset($commands[low($this->args[1])])) { - $this->out($commands[low($this->args[1])] . "\n\n"); + } elseif (isset($commands[low($this->args[0])])) { + $this->out($commands[low($this->args[0])] . "\n\n"); } else { - $this->out(sprintf(__("Command '%s' not found", true), $this->args[1])); + $this->out(sprintf(__("Command '%s' not found", true), $this->args[0])); } } /**