aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-02-03 14:52:50 +0100
committerMario Vavti <mario@mariovavti.com>2019-02-03 14:52:50 +0100
commit4706ff693843e0fd059bba5d306a172f059b4af7 (patch)
treed8d64fcb1d5a6c49559916643bfea312c659f0b7 /Zotlabs/Module
parentc444af007fcf402cfb6eecd8dba75679de4747e3 (diff)
downloadvolse-hubzilla-4706ff693843e0fd059bba5d306a172f059b4af7.tar.gz
volse-hubzilla-4706ff693843e0fd059bba5d306a172f059b4af7.tar.bz2
volse-hubzilla-4706ff693843e0fd059bba5d306a172f059b4af7.zip
do not overwrite $sql_extra
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Oep.php6
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;