diff options
author | Max Kostikov <max@kostikov.co> | 2021-03-08 20:57:02 +0000 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-03-08 20:57:02 +0000 |
commit | efe65e1ba87aed8b92af1e8cc80183f21427505d (patch) | |
tree | 54d97862061cbd1fae50f5f186a34a9bbc4bae7d | |
parent | 6b500ee3e111b5b10860edaefc914dc79ff06f61 (diff) | |
download | volse-hubzilla-efe65e1ba87aed8b92af1e8cc80183f21427505d.tar.gz volse-hubzilla-efe65e1ba87aed8b92af1e8cc80183f21427505d.tar.bz2 volse-hubzilla-efe65e1ba87aed8b92af1e8cc80183f21427505d.zip |
Fix undefined edited and created checks
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
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')); |