Skip to content
Permalink
Browse files

Fixing _getNodeId()

  • Loading branch information...
markstory committed Aug 2, 2009
1 parent acaba02 commit a599f53c63d19f3e0653cdf08e1cb60102f454d9
Showing with 3 additions and 1 deletion.
  1. +3 −1 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");
}

0 comments on commit a599f53

Please sign in to comment.
You can’t perform that action at this time.