Skip to content

Commit

Permalink
typo fix from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Dec 7, 2011
1 parent 07cda1f commit f44020c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/sitelink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function findObjectNode($object){
if(get_class($object)=='eZContentObject'){
$assigned_nodes = $object->assignedNodes();
array_unshift($assigned_nodes, $object->mainNode());
foreach($loopme as $node){
foreach($assigned_nodes as $node){
eZDebug::writeDebug($this->rootNodeID);
eZDebug::writeDebug($node->pathArray());
if($node->hiddenStatusString() != "Hidden" && in_array($this->rootNodeID,$node->pathArray())){return $node;}
}
return $object->mainNode();
Expand Down

0 comments on commit f44020c

Please sign in to comment.