aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-07-27 19:07:09 +0000
committerMario <mario@mariovavti.com>2021-07-27 19:07:09 +0000
commitc6133d2558ce29e44342fa7be8bb65e0059aea02 (patch)
tree3a797308d9fbed0f63f72b7de4953ec66409a707
parent83b1f62e130b8f120cd2d0daec7e2f9b58907386 (diff)
downloadvolse-hubzilla-c6133d2558ce29e44342fa7be8bb65e0059aea02.tar.gz
volse-hubzilla-c6133d2558ce29e44342fa7be8bb65e0059aea02.tar.bz2
volse-hubzilla-c6133d2558ce29e44342fa7be8bb65e0059aea02.zip
check if isset before unsetting to omit php errors
-rw-r--r--Zotlabs/Lib/Activity.php4
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;
}