diff options
author | Mario <mario@mariovavti.com> | 2022-05-14 19:04:05 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-05-14 19:04:05 +0000 |
commit | 66436ce4a2c017b2de167310f302fc5b0c4c6f60 (patch) | |
tree | 52d22a3d1bae22a8b7538049583c560b46cc8ad2 | |
parent | 62b1ff4ba1844d9019aebd328256a38979e1f717 (diff) | |
download | volse-hubzilla-66436ce4a2c017b2de167310f302fc5b0c4c6f60.tar.gz volse-hubzilla-66436ce4a2c017b2de167310f302fc5b0c4c6f60.tar.bz2 volse-hubzilla-66436ce4a2c017b2de167310f302fc5b0c4c6f60.zip |
fix php errors
-rw-r--r-- | Zotlabs/Lib/Activity.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index ba45e9927..c926bdf34 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2195,20 +2195,20 @@ class Activity { $s['created'] = datetime_convert('UTC', 'UTC', $act->data['published']); $s['commented'] = $s['created']; } - elseif (array_key_exists('published', $act->obj)) { + elseif (is_array($act->obj) && array_key_exists('published', $act->obj)) { $s['created'] = datetime_convert('UTC', 'UTC', $act->obj['published']); $s['commented'] = $s['created']; } if (array_key_exists('updated', $act->data)) { $s['edited'] = datetime_convert('UTC', 'UTC', $act->data['updated']); } - elseif (array_key_exists('updated', $act->obj)) { + elseif (is_array($act->obj) && array_key_exists('updated', $act->obj)) { $s['edited'] = datetime_convert('UTC', 'UTC', $act->obj['updated']); } if (array_key_exists('expires', $act->data)) { $s['expires'] = datetime_convert('UTC', 'UTC', $act->data['expires']); } - elseif (array_key_exists('expires', $act->obj)) { + elseif (is_array($act->obj) && array_key_exists('expires', $act->obj)) { $s['expires'] = datetime_convert('UTC', 'UTC', $act->obj['expires']); } |