Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing _getNodeId()

  • Loading branch information...
commit a599f53c63d19f3e0653cdf08e1cb60102f454d9 1 parent acaba02
@markstory markstory authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 cake/console/libs/acl.php
View
4 cake/console/libs/acl.php
@@ -495,8 +495,10 @@ function parseIdentifier($identifier) {
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");
}
Please sign in to comment.
Something went wrong with that request. Please try again.