aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-05-14 19:04:05 +0000
committerMario <mario@mariovavti.com>2022-05-14 19:04:05 +0000
commit66436ce4a2c017b2de167310f302fc5b0c4c6f60 (patch)
tree52d22a3d1bae22a8b7538049583c560b46cc8ad2 /Zotlabs
parent62b1ff4ba1844d9019aebd328256a38979e1f717 (diff)
downloadvolse-hubzilla-66436ce4a2c017b2de167310f302fc5b0c4c6f60.tar.gz
volse-hubzilla-66436ce4a2c017b2de167310f302fc5b0c4c6f60.tar.bz2
volse-hubzilla-66436ce4a2c017b2de167310f302fc5b0c4c6f60.zip
fix php errors
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php6
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']);
}