]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
07de6ec
)
Fixed error on pages without comments
author
Dan Brown
<redacted>
Fri, 9 Jun 2023 18:21:49 +0000
(19:21 +0100)
committer
Dan Brown
<redacted>
Fri, 9 Jun 2023 18:21:49 +0000
(19:21 +0100)
app/Activity/Tools/CommentTree.php
patch
|
blob
|
history
diff --git
a/app/Activity/Tools/CommentTree.php
b/app/Activity/Tools/CommentTree.php
index 559edccf3218c8f0cfc18e8c10658b6912a932d1..3303add39b891ca69b6ef9694f5d5af102ea9dc7 100644
(file)
--- a/
app/Activity/Tools/CommentTree.php
+++ b/
app/Activity/Tools/CommentTree.php
@@
-65,7
+65,7
@@
class CommentTree
}
$tree = [];
- foreach ($childMap[0] as $childId) {
+ foreach ($childMap[0]
?? []
as $childId) {
$tree[] = $this->createTreeForId($childId, 0, $byId, $childMap);
}