From 863a8555d981d6c39952d783ec98083db195e075 Mon Sep 17 00:00:00 2001 From: sam-at-github Date: Sat, 29 Mar 2014 22:36:06 +1100 Subject: [PATCH] Fixed CS issues. Fixed bug - added missing condition to find. --- lib/Cake/Console/Command/AclShell.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Console/Command/AclShell.php b/lib/Cake/Console/Command/AclShell.php index 63ca3c940..19fec1c0e 100644 --- a/lib/Cake/Console/Command/AclShell.php +++ b/lib/Cake/Console/Command/AclShell.php @@ -152,11 +152,11 @@ class AclShell extends AppShell { extract($this->_dataVars()); $identifier = $this->parseIdentifier($this->args[1]); - if(is_string($identifier)) { - $identifier = ['alias' => $identifier]; + if (is_string($identifier)) { + $identifier = array('alias' => $identifier); } - if($this->Acl->{$class}->find('all')) { + if ($this->Acl->{$class}->find('all', ['conditions' => $identifier])) { if (!$this->Acl->{$class}->deleteAll($identifier)) { $this->error(__d('cake_console', 'Node Not Deleted. ') . __d('cake_console', 'There was an error deleting the %s.', $class) . "\n"); }