mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-26 13:14:47 +00:00
Fixed error on pages without comments
This commit is contained in:
parent
07de6ecdc5
commit
59c7077fd9
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class CommentTree
|
||||||
}
|
}
|
||||||
|
|
||||||
$tree = [];
|
$tree = [];
|
||||||
foreach ($childMap[0] as $childId) {
|
foreach ($childMap[0] ?? [] as $childId) {
|
||||||
$tree[] = $this->createTreeForId($childId, 0, $byId, $childMap);
|
$tree[] = $this->createTreeForId($childId, 0, $byId, $childMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue