mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: prevet calling loadDescendantBlogHolderIDListInto() on BlogPage and its subclass
This commit is contained in:
parent
7fe8c11f99
commit
1a2e2a1d98
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user