diff options
author | friendica <info@friendica.com> | 2015-01-29 14:51:41 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-29 14:51:41 -0800 |
commit | ff68ea608786a698ad46637ef13854ac1b1e6beb (patch) | |
tree | 5e9bec7525754dda60c8c08bc00802160efa202c /mod/page.php | |
parent | a2cdd1499c968c31ae1b95933231f80be5fc639b (diff) | |
download | volse-hubzilla-ff68ea608786a698ad46637ef13854ac1b1e6beb.tar.gz volse-hubzilla-ff68ea608786a698ad46637ef13854ac1b1e6beb.tar.bz2 volse-hubzilla-ff68ea608786a698ad46637ef13854ac1b1e6beb.zip |
more message restrict conversions
Diffstat (limited to 'mod/page.php')
-rw-r--r-- | mod/page.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/page.php b/mod/page.php index e8f17ebda..1830b964b 100644 --- a/mod/page.php +++ b/mod/page.php @@ -56,10 +56,10 @@ function page_init(&$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_type = %d $sql_options $revision limit 1", intval($u[0]['channel_id']), dbesc($page_id), - intval(ITEM_WEBPAGE) + intval(ITEM_TYPE_WEBPAGE) ); if(! $r) { @@ -68,10 +68,10 @@ function page_init(&$a) { $x = 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 $revision limit 1", + item_type = %d $revision limit 1", intval($u[0]['channel_id']), dbesc($page_id), - intval(ITEM_WEBPAGE) + intval(ITEM_TYPE_WEBPAGE) ); if($x) { // Yes, it's there. You just aren't allowed to see it. |