diff options
author | Mario <mario@mariovavti.com> | 2021-07-27 19:07:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-07-27 19:07:09 +0000 |
commit | c6133d2558ce29e44342fa7be8bb65e0059aea02 (patch) | |
tree | 3a797308d9fbed0f63f72b7de4953ec66409a707 /Zotlabs/Lib/Activity.php | |
parent | 83b1f62e130b8f120cd2d0daec7e2f9b58907386 (diff) | |
download | volse-hubzilla-c6133d2558ce29e44342fa7be8bb65e0059aea02.tar.gz volse-hubzilla-c6133d2558ce29e44342fa7be8bb65e0059aea02.tar.bz2 volse-hubzilla-c6133d2558ce29e44342fa7be8bb65e0059aea02.zip |
check if isset before unsetting to omit php errors
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-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; } |