Fix page not found error after editing a webpage

This commit is contained in:
Christian Vogeley 2013-12-31 18:28:07 +01:00
parent 22e94d7d68
commit 575f2b3280

View File

@ -58,7 +58,7 @@ function page_content(&$a) {
$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
item_restrict = %d $sql_options $revision limit 1",
(item_restrict & %d) $sql_options $revision limit 1",
intval($u[0]['channel_id']),
dbesc($page_id),
intval(ITEM_WEBPAGE)