aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-10 13:16:08 +0000
committerMario <mario@mariovavti.com>2021-03-10 13:16:08 +0000
commitf8447521a84c0eb30c08da212e8156256558617b (patch)
tree62a8e527517a19ed18928aaeff3314d680f94b9f /include/conversation.php
parent15faf01ec960fff88a1f9c83fb6d251319cecea7 (diff)
downloadvolse-hubzilla-f8447521a84c0eb30c08da212e8156256558617b.tar.gz
volse-hubzilla-f8447521a84c0eb30c08da212e8156256558617b.tar.bz2
volse-hubzilla-f8447521a84c0eb30c08da212e8156256558617b.zip
php8: random fixes deriving from mod network
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ae69b7a01..f3e5fafa7 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -865,7 +865,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$x = [ 'mode' => $mode, 'item' => $item ];
call_hooks('stream_item',$x);
- if($x['item']['blocked'])
+ if(isset($x['item']['blocked']))
continue;
$item = $x['item'];
@@ -1563,7 +1563,7 @@ function sort_item_children($items) {
$result = $items;
usort($result,'sort_thr_created_rev');
foreach($result as $k => $i) {
- if($result[$k]['children']) {
+ if(isset($result[$k]['children'])) {
$result[$k]['children'] = sort_item_children($result[$k]['children']);
}
}
@@ -1573,7 +1573,7 @@ function sort_item_children($items) {
function add_children_to_list($children, &$arr) {
foreach($children as $y) {
$arr[] = $y;
- if($y['children'])
+ if(isset($y['children']))
add_children_to_list($y['children'], $arr);
}
}