diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-02-03 13:52:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-02-03 15:01:39 +0100 |
commit | cda8a7be38a8f63d2af90d640755f36c7cf660ec (patch) | |
tree | bbf99b11410e5c3a428795077d7402b23d55021d | |
parent | ddbc35181c2a2814466996dbc2ed6ef35261f2c8 (diff) | |
download | volse-hubzilla-cda8a7be38a8f63d2af90d640755f36c7cf660ec.tar.gz volse-hubzilla-cda8a7be38a8f63d2af90d640755f36c7cf660ec.tar.bz2 volse-hubzilla-cda8a7be38a8f63d2af90d640755f36c7cf660ec.zip |
do not overwrite $sql_extra
(cherry picked from commit 4706ff693843e0fd059bba5d306a172f059b4af7)
-rw-r--r-- | Zotlabs/Module/Oep.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Oep.php b/Zotlabs/Module/Oep.php index 0f20a5f9a..491a48f28 100644 --- a/Zotlabs/Module/Oep.php +++ b/Zotlabs/Module/Oep.php @@ -181,7 +181,7 @@ class Oep extends \Zotlabs\Web\Controller { dbesc($res) ); if($r) { - $sql_extra = "and item.id = " . intval($r[0]['iid']) . " "; + $sql_extra .= " and item.id = " . intval($r[0]['iid']) . " "; } else { return $ret; @@ -255,6 +255,8 @@ 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; @@ -265,7 +267,7 @@ class Oep extends \Zotlabs\Web\Controller { dbesc($res) ); if($r) { - $sql_extra = "and item.id = " . intval($r[0]['iid']) . " "; + $sql_extra .= " and item.id = " . intval($r[0]['iid']) . " "; } else { return $ret; |