aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2014-01-03 21:25:18 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2014-01-03 21:25:18 +0100
commit87ff49544376f71cf0f10aef5123886a99b36239 (patch)
tree9dfef31eadee9dd41ae71a1ff40cd010d91e2a59
parentaafc40069bf0955d935adb4632650c7c990063a7 (diff)
downloadvolse-hubzilla-87ff49544376f71cf0f10aef5123886a99b36239.tar.gz
volse-hubzilla-87ff49544376f71cf0f10aef5123886a99b36239.tar.bz2
volse-hubzilla-87ff49544376f71cf0f10aef5123886a99b36239.zip
Revert "Fix page not found error after editing a webpage"
This reverts commit 575f2b3280049eba2bbead023d8fe7fc345af0b1.
-rw-r--r--mod/page.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/page.php b/mod/page.php
index 125c0141f..df17dbf52 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)