mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed CS issues. Fixed bug - added missing condition to find.
This commit is contained in:
parent
a3fe7cd245
commit
863a8555d9
1 changed files with 3 additions and 3 deletions
|
@ -153,10 +153,10 @@ class AclShell extends AppShell {
|
|||
|
||||
$identifier = $this->parseIdentifier($this->args[1]);
|
||||
if (is_string($identifier)) {
|
||||
$identifier = ['alias' => $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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue