aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2013-12-31 18:28:07 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2013-12-31 18:28:07 +0100
commit575f2b3280049eba2bbead023d8fe7fc345af0b1 (patch)
tree119945d0065fc74507b27e8c8b4c892df536ba16 /mod
parent22e94d7d684005d01a900a23d02f8e9dd0f283d8 (diff)
downloadvolse-hubzilla-575f2b3280049eba2bbead023d8fe7fc345af0b1.tar.gz
volse-hubzilla-575f2b3280049eba2bbead023d8fe7fc345af0b1.tar.bz2
volse-hubzilla-575f2b3280049eba2bbead023d8fe7fc345af0b1.zip
Fix page not found error after editing a webpage
Diffstat (limited to 'mod')
-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)