Fixed error on pages without comments

This commit is contained in:
Dan Brown 2023-06-09 19:21:49 +01:00
parent 07de6ecdc5
commit 59c7077fd9
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -65,7 +65,7 @@ class CommentTree
}
$tree = [];
foreach ($childMap[0] as $childId) {
foreach ($childMap[0] ?? [] as $childId) {
$tree[] = $this->createTreeForId($childId, 0, $byId, $childMap);
}