diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-02-03 13:58:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-02-03 15:02:06 +0100 |
commit | b6c384a0f72cbcfd32248650f1c2a9e05d34546b (patch) | |
tree | 6f7acaf7ea557984d64409b19eee4b7a94e9cd6c | |
parent | cda8a7be38a8f63d2af90d640755f36c7cf660ec (diff) | |
download | volse-hubzilla-b6c384a0f72cbcfd32248650f1c2a9e05d34546b.tar.gz volse-hubzilla-b6c384a0f72cbcfd32248650f1c2a9e05d34546b.tar.bz2 volse-hubzilla-b6c384a0f72cbcfd32248650f1c2a9e05d34546b.zip |
cleanup logging and return if query returns empty result
(cherry picked from commit c657d766cf0dbca750840a4395003ea9e94a4809)
-rw-r--r-- | Zotlabs/Module/Oep.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Oep.php b/Zotlabs/Module/Oep.php index 491a48f28..c0d8e15e5 100644 --- a/Zotlabs/Module/Oep.php +++ b/Zotlabs/Module/Oep.php @@ -194,6 +194,9 @@ class Oep extends \Zotlabs\Web\Controller { intval(ITEM_TYPE_CARD) ); + if(! $r) + return; + $item_normal = " and item.item_hidden = 0 and item.item_type in (0,6) and item.item_deleted = 0 and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0 and item.item_blocked = 0 "; @@ -255,9 +258,6 @@ class Oep extends \Zotlabs\Web\Controller { if(! $channel) return $ret; -hz_syslog($nick); - - if(! perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_pages')) return $ret; @@ -280,6 +280,9 @@ hz_syslog($nick); intval(ITEM_TYPE_ARTICLE) ); + if(! $r) + return; + $item_normal = " and item.item_hidden = 0 and item.item_type in (0,7) and item.item_deleted = 0 and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0 and item.item_blocked = 0 "; |