diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-13 21:50:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-13 21:50:13 +0200 |
commit | d08c8e6edc81448cb00564767fa1401b48059461 (patch) | |
tree | f7b26b748737cd595f9b1ec5bf39c9e75b1aa628 /Zotlabs | |
parent | f1667dbbe62dd0dce95aa36071c00b83b9033f0c (diff) | |
download | volse-hubzilla-d08c8e6edc81448cb00564767fa1401b48059461.tar.gz volse-hubzilla-d08c8e6edc81448cb00564767fa1401b48059461.tar.bz2 volse-hubzilla-d08c8e6edc81448cb00564767fa1401b48059461.zip |
Revert "zot_info(): improved check for deleted"
This reverts commit f1667dbbe62dd0dce95aa36071c00b83b9033f0c.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 30afab66c..b75e4e135 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -2724,13 +2724,12 @@ class Libzot { $e = $r[0]; $id = $e['channel_id']; - $sys_channel = ((intval($e['channel_system'])) ? true : false); + $sys_channel = ((empty($e['channel_system'])) ? false : true); $special_channel = (($e['channel_pageflags'] & PAGE_PREMIUM) ? true : false); $adult_channel = (($e['channel_pageflags'] & PAGE_ADULT) ? true : false); $censored = (($e['channel_pageflags'] & PAGE_CENSORED) ? true : false); $searchable = (($e['channel_pageflags'] & PAGE_HIDDEN) ? false : true); - // if the xchan has been deleted (instead of marked deleted) xchan entries will return null - $deleted = ((intval($e['xchan_deleted']) || $e['xchan_hash'] === null) ? true : false); + $deleted = ((empty($e['xchan_deleted'])) ? false : true); if ($deleted || $censored || $sys_channel) $searchable = false; |