aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-10 10:48:24 +0000
committerMario <mario@mariovavti.com>2022-11-10 10:48:24 +0000
commit30ddee65a4b4cc52a5cfb6cef77ac43b9ad7f299 (patch)
tree3c205b3a5e6252564cc06c134cc47f7ec1881525 /include/items.php
parent63dc8d7fc4092d7bb527a46149d211c9d135a7f0 (diff)
downloadvolse-hubzilla-30ddee65a4b4cc52a5cfb6cef77ac43b9ad7f299.tar.gz
volse-hubzilla-30ddee65a4b4cc52a5cfb6cef77ac43b9ad7f299.tar.bz2
volse-hubzilla-30ddee65a4b4cc52a5cfb6cef77ac43b9ad7f299.zip
fix wrong array key and undefined array key
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 96e3980f1..4e4869aa8 100644
--- a/include/items.php
+++ b/include/items.php
@@ -4608,9 +4608,10 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
$items = array();
}
- if($parents_str && $arr['mark_seen'])
+ if ($parents_str && (isset($arr['mark_seen']) && $arr['mark_seen'])) {
$update_unseen = ' AND parent IN ( ' . dbesc($parents_str) . ' )';
/** @FIXME finish mark unseen sql */
+ }
}
return $items;