Permalink
Browse files

fixed bug

  • Loading branch information...
1 parent 4e47bf0 commit 7d3fbeff1d6e7d8a9016165a2ba1a7e67deb99b4 @kbond committed Aug 23, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 Entity/NodeManager.php
View
@@ -44,6 +44,10 @@ public function getAncestors(Node $node)
{
$ancestorArray = $node->getAncestorArray();
+ if (empty ($ancestorArray)) {
+ return array();
+ }
+
$class = $this->getClass();
// @todo find a better sorting method

0 comments on commit 7d3fbef

Please sign in to comment.