BUGFIX: prevet calling loadDescendantBlogHolderIDListInto() on BlogPage and its subclass

This commit is contained in:
Saophalkun Ponlu 2009-08-03 23:37:03 +00:00
parent 7fe8c11f99
commit 1a2e2a1d98
1 changed files with 6 additions and 2 deletions

View File

@ -121,8 +121,12 @@ class BlogTree extends Page {
foreach($children as $child) {
if (in_array($child->ID, $idList)) continue;
if ($child instanceof BlogHolder) $idList[] = $child->ID;
else $child->loadDescendantBlogHolderIDListInto($idList);
if ($child instanceof BlogHolder) {
$idList[] = $child->ID;
}
else if ($child instanceof BlogTree) {
$child->loadDescendantBlogHolderIDListInto($idList);
}
}
}
}