From 641b1c2e1b5be0d5b7b94ea6566238baa830ebe4 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 11 Mar 2023 19:38:37 +0000 Subject: fix php error --- Zotlabs/Lib/Libzot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index f22b475be..93d8a39c0 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1366,7 +1366,7 @@ class Libzot { return false; } $x = self::find_parent($env, $act); - if ($x === $act->id || $x === $act->obj['id']) { + if ($x === $act->id || (is_array($act->obj) && array_key_exists('id', $act->obj) && $x === $act->obj['id'])) { return true; } } -- cgit v1.2.3