mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-12-23 23:02:08 +03:00
Fixed error on pages without comments
This commit is contained in:
@@ -65,7 +65,7 @@ class CommentTree
|
||||
}
|
||||
|
||||
$tree = [];
|
||||
foreach ($childMap[0] as $childId) {
|
||||
foreach ($childMap[0] ?? [] as $childId) {
|
||||
$tree[] = $this->createTreeForId($childId, 0, $byId, $childMap);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user