aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 20:06:36 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 20:06:36 +0000
commit360ae9080e85f565bd0925c3eb80ce5f757acd5f (patch)
treefa8090d39ea60bb94ca7bef9d8b65be95d762420 /Zotlabs
parent956aec14482bf069d7f73797c7ce364eda428e72 (diff)
downloadvolse-hubzilla-360ae9080e85f565bd0925c3eb80ce5f757acd5f.tar.gz
volse-hubzilla-360ae9080e85f565bd0925c3eb80ce5f757acd5f.tar.bz2
volse-hubzilla-360ae9080e85f565bd0925c3eb80ce5f757acd5f.zip
Fix actor store warnings on non defined properties
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 5730da934..d535ad241 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -1602,13 +1602,13 @@ class Activity {
if ($inbox) {
$collections['inbox'] = $inbox;
- if ($person_obj['outbox'])
+ if (array_key_exists('outbox', $person_obj))
$collections['outbox'] = $person_obj['outbox'];
- if ($person_obj['followers'])
+ if (array_key_exists('followers', $person_obj))
$collections['followers'] = $person_obj['followers'];
- if ($person_obj['following'])
+ if (array_key_exists('following', $person_obj))
$collections['following'] = $person_obj['following'];
- if ($person_obj['endpoints'] && $person_obj['endpoints']['sharedInbox'])
+ if (array_key_exists('endpoints', $person_obj) && array_key_exists('sharedInbox', $person_obj['endpoints']))
$collections['sharedInbox'] = $person_obj['endpoints']['sharedInbox'];
}