Skip to content

Commit

Permalink
Fixed CS issues. Fixed bug - added missing condition to find.
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpinkus committed Mar 29, 2014
1 parent a3fe7cd commit 863a855
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Console/Command/AclShell.php
Expand Up @@ -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");
}
Expand Down

0 comments on commit 863a855

Please sign in to comment.