aboutsummaryrefslogtreecommitdiffstats
path: root/mod/block.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-21 22:17:17 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-21 22:17:17 -0700
commit5795e2a58bb4a0702a3d318ec6ac05681d6e5864 (patch)
treeb416235fa275f7cb036c31737be5fb224a75a87c /mod/block.php
parent25bd332aab20662e55824031dfd19dff23e248f8 (diff)
downloadvolse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.gz
volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.tar.bz2
volse-hubzilla-5795e2a58bb4a0702a3d318ec6ac05681d6e5864.zip
more migration of page types
Diffstat (limited to 'mod/block.php')
-rw-r--r--mod/block.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/block.php b/mod/block.php
index 043b0e9e8..fb5645d8a 100644
--- a/mod/block.php
+++ b/mod/block.php
@@ -50,10 +50,10 @@ function block_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 = 'BUILDBLOCK' 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_BUILDBLOCK)
+ intval(ITEM_TYPE_BUILDBLOCK)
);
if(! $r) {
@@ -62,10 +62,10 @@ function block_content(&$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 = 'BUILDBLOCK' and
- item_restrict = %d $revision limit 1",
+ item_type = %d $revision limit 1",
intval($u[0]['channel_id']),
dbesc($page_id),
- intval(ITEM_BUILDBLOCK)
+ intval(ITEM_TYPE_BUILDBLOCK)
);
if($x) {
// Yes, it's there. You just aren't allowed to see it.