aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 20:57:02 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 20:57:02 +0000
commitefe65e1ba87aed8b92af1e8cc80183f21427505d (patch)
tree54d97862061cbd1fae50f5f186a34a9bbc4bae7d /Zotlabs
parent6b500ee3e111b5b10860edaefc914dc79ff06f61 (diff)
downloadvolse-hubzilla-efe65e1ba87aed8b92af1e8cc80183f21427505d.tar.gz
volse-hubzilla-efe65e1ba87aed8b92af1e8cc80183f21427505d.tar.bz2
volse-hubzilla-efe65e1ba87aed8b92af1e8cc80183f21427505d.zip
Fix undefined edited and created checks
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index d8e3b7947..e5801fba0 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2189,10 +2189,10 @@ class Activity {
}
}
- if (!$s['created'])
+ if (! array_key_exists('created', $s))
$s['created'] = datetime_convert();
- if (!$s['edited'])
+ if (! array_key_exists('edited', $s))
$s['edited'] = $s['created'];
$s['title'] = (($response_activity) ? EMPTY_STR : self::bb_content($content, 'name'));