mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 12:02:41 +00:00
Fixing _getNodeId()
This commit is contained in:
parent
acaba022c6
commit
a599f53c63
1 changed files with 3 additions and 1 deletions
|
@ -495,8 +495,10 @@ class AclShell extends Shell {
|
|||
function _getNodeId($class, $identifier) {
|
||||
$node = $this->Acl->{$class}->node($identifier);
|
||||
if (empty($node)) {
|
||||
if (is_array($identifier)) {
|
||||
$identifier = var_export($identifier, true);
|
||||
}
|
||||
$this->error(sprintf(__('Could not find node using reference "%s"', true), $identifier));
|
||||
return;
|
||||
}
|
||||
return Set::extract($node, "0.{$class}.id");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue