aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-18 18:06:32 +0000
committerMario <mario@mariovavti.com>2021-09-18 18:06:32 +0000
commit5497adfde6e1df941d42bb8fb6e18b261402716e (patch)
tree6f6f0839ed5e6ba6bd5e67942c328811d76fbb67 /Zotlabs/Lib
parentd4c2e502858dd43672e7a24b41f3533fbbc18bdf (diff)
downloadvolse-hubzilla-5497adfde6e1df941d42bb8fb6e18b261402716e.tar.gz
volse-hubzilla-5497adfde6e1df941d42bb8fb6e18b261402716e.tar.bz2
volse-hubzilla-5497adfde6e1df941d42bb8fb6e18b261402716e.zip
add option to mark all notices of a thread read if a notice of the thread is clicked (default 1) and fix a php error in find_parent() if $act->obj is not an array
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Libzot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index e03f0173d..531b83359 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1339,7 +1339,7 @@ class Libzot {
static function find_parent($env, $act) {
if ($act) {
- if (in_array($act->type, ['Like', 'Dislike'])) {
+ if (in_array($act->type, ['Like', 'Dislike']) && is_array($act->obj)) {
return $act->obj['id'];
}
if ($act->parent_id) {