do not overwrite $sql_extra
This commit is contained in:
parent
c444af007f
commit
4706ff6938
@ -181,7 +181,7 @@ class Oep extends \Zotlabs\Web\Controller {
|
|||||||
dbesc($res)
|
dbesc($res)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
$sql_extra = "and item.id = " . intval($r[0]['iid']) . " ";
|
$sql_extra .= " and item.id = " . intval($r[0]['iid']) . " ";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return $ret;
|
return $ret;
|
||||||
@ -255,6 +255,8 @@ class Oep extends \Zotlabs\Web\Controller {
|
|||||||
if(! $channel)
|
if(! $channel)
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
||||||
|
hz_syslog($nick);
|
||||||
|
|
||||||
|
|
||||||
if(! perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_pages'))
|
if(! perm_is_allowed($channel['channel_id'],get_observer_hash(),'view_pages'))
|
||||||
return $ret;
|
return $ret;
|
||||||
@ -265,7 +267,7 @@ class Oep extends \Zotlabs\Web\Controller {
|
|||||||
dbesc($res)
|
dbesc($res)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
$sql_extra = "and item.id = " . intval($r[0]['iid']) . " ";
|
$sql_extra .= " and item.id = " . intval($r[0]['iid']) . " ";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return $ret;
|
return $ret;
|
||||||
|
Reference in New Issue
Block a user