diff options
author | Mario <mario@mariovavti.com> | 2021-07-27 19:07:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-07-27 21:12:59 +0200 |
commit | 6bcd24ab90a3aee3fe9841220ff0be02159d7c3d (patch) | |
tree | b6b4a4d5fb4769ee507d0a006178bf6eb3fa6ae1 | |
parent | ea8d38dec05a20af68e5a7ae8fbd9c50fdecbe7d (diff) | |
download | volse-hubzilla-6bcd24ab90a3aee3fe9841220ff0be02159d7c3d.tar.gz volse-hubzilla-6bcd24ab90a3aee3fe9841220ff0be02159d7c3d.tar.bz2 volse-hubzilla-6bcd24ab90a3aee3fe9841220ff0be02159d7c3d.zip |
check if isset before unsetting to omit php errors
(cherry picked from commit c6133d2558ce29e44342fa7be8bb65e0059aea02)
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 784de3d2c..81787781a 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -757,7 +757,9 @@ class Activity { if (array_path_exists('object/id', $obj)) { $obj['object'] = $obj['object']['id']; } - unset($obj['cc']); + if (isset($obj['cc'])) { + unset($obj['cc']); + } $obj['to'] = [ACTIVITY_PUBLIC_INBOX]; $ret['object'] = $obj; } |