Fix page not found error after editing a webpage
This commit is contained in:
parent
22e94d7d68
commit
575f2b3280
@ -58,7 +58,7 @@ function page_content(&$a) {
|
|||||||
|
|
||||||
$r = q("select item.* from item left join item_id on item.id = item_id.iid
|
$r = q("select item.* from item left join item_id on item.id = item_id.iid
|
||||||
where item.uid = %d and sid = '%s' and service = 'WEBPAGE' and
|
where item.uid = %d and sid = '%s' and service = 'WEBPAGE' and
|
||||||
item_restrict = %d $sql_options $revision limit 1",
|
(item_restrict & %d) $sql_options $revision limit 1",
|
||||||
intval($u[0]['channel_id']),
|
intval($u[0]['channel_id']),
|
||||||
dbesc($page_id),
|
dbesc($page_id),
|
||||||
intval(ITEM_WEBPAGE)
|
intval(ITEM_WEBPAGE)
|
||||||
|
Reference in New Issue
Block a user