aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/page.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/page.php b/mod/page.php
index df17dbf52..125c0141f 100644
--- a/mod/page.php
+++ b/mod/page.php
@@ -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)