Revert "Fix page not found error after editing a webpage"

This reverts commit 575f2b3280.
This commit is contained in:
Christian Vogeley 2014-01-03 21:25:18 +01:00
parent aafc40069b
commit 87ff495443

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)