diff options
author | Mario <mario@mariovavti.com> | 2021-03-03 12:39:41 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-03 14:11:29 +0100 |
commit | 3d264f5a55f340e3c20c1181c8b4578abecf3f1c (patch) | |
tree | 6c5eba25568a65e7317588717df048042a45685a /include/channel.php | |
parent | fbb1d6aa41d9eb7a27b4a8bc79747ac0797db0c7 (diff) | |
download | volse-hubzilla-3d264f5a55f340e3c20c1181c8b4578abecf3f1c.tar.gz volse-hubzilla-3d264f5a55f340e3c20c1181c8b4578abecf3f1c.tar.bz2 volse-hubzilla-3d264f5a55f340e3c20c1181c8b4578abecf3f1c.zip |
php8: fix warnings during install procedure
(cherry picked from commit 48bae9d4219735bc44f4ee72228d19d3e6b9efc9)
Diffstat (limited to 'include/channel.php')
-rw-r--r-- | include/channel.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/channel.php b/include/channel.php index c6ca673eb..d1095115d 100644 --- a/include/channel.php +++ b/include/channel.php @@ -303,8 +303,8 @@ function create_identity($arr) { $photo_type = null; $z = [ - 'account' => $a[0], - 'channel' => $r[0], + 'account' => $a[0] ?? [], + 'channel' => $r[0] ?? [], 'photo_url' => '' ]; /** @@ -1098,11 +1098,11 @@ function identity_basic_export($channel_id, $sections = null, $zap_compat = fals // @fixme - Not totally certain how to handle $zot_compat for the event timezone which exists // in Hubzilla but is stored with the item and not the event. In Zap, stored information is - // always UTC and localised on access as per standard conventions for working with global time data. + // always UTC and localised on access as per standard conventions for working with global time data. // Older Zot (pre-Zot6) records aren't translated correctly w/r/t AS2 so only include events for the last year or so if - // migrating to Zap. - + // migrating to Zap. + $sqle = (($zap_compat) ? " and created > '2020-01-01 00:00:00' " : ''); $r = q("select * from event where uid = %d $sqle", |