Skip to content
Permalink
Browse files

Fixed CS issues. Fixed bug - added missing condition to find.

  • Loading branch information...
sam-at-github committed Mar 29, 2014
1 parent a3fe7cd commit 863a8555d981d6c39952d783ec98083db195e075
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Console/Command/AclShell.php
@@ -152,11 +152,11 @@ public function delete() {
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");
}

0 comments on commit 863a855

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.