diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-13 13:15:08 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-13 13:15:08 +0200 |
commit | 2a95500b6538f130df9434f1fb253247872679e8 (patch) | |
tree | e14dc2cf8b35fb353c92d6adbad9fe7c8f66a810 /Zotlabs/Lib/Libzot.php | |
parent | 2ddad66ce74dd90249fa083fcf4616f8222de1b5 (diff) | |
download | volse-hubzilla-2a95500b6538f130df9434f1fb253247872679e8.tar.gz volse-hubzilla-2a95500b6538f130df9434f1fb253247872679e8.tar.bz2 volse-hubzilla-2a95500b6538f130df9434f1fb253247872679e8.zip |
fix more php warnings
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 7abbab00b..a19af98e3 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -804,7 +804,7 @@ class Libzot { 'xchan_name_date' => $arr['name_updated'], 'xchan_hidden' => intval(1 - intval($arr['searchable'])), 'xchan_selfcensored' => $arr['adult_content'], - 'xchan_deleted' => $arr['deleted'], + 'xchan_deleted' => $arr['deleted'] ?? 0, 'xchan_pubforum' => $arr['public_forum'] ] ); @@ -885,7 +885,7 @@ class Libzot { else { $r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' where xchan_hash = '%s'", - dbescdate(datetime_convert('UTC', 'UTC', $arr['photo_updated'])), + dbescdate(datetime_convert('UTC', 'UTC', $arr['photo']['updated'])), dbesc($photos[0]), dbesc($photos[1]), dbesc($photos[2]), |