From 5795e2a58bb4a0702a3d318ec6ac05681d6e5864 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 21 May 2015 22:17:17 -0700 Subject: more migration of page types --- include/widgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index 5a61ea639..86f65cdee 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -902,10 +902,10 @@ function widget_random_block($arr) { $r = q("select item.* from item left join item_id on item.id = item_id.iid where item.uid = %d and sid like '%s' and service = 'BUILDBLOCK' and - item_restrict = %d $sql_options order by $randfunc limit 1", + item_type = %d $sql_options order by $randfunc limit 1", intval($channel_id), dbesc('%' . $contains . '%'), - intval(ITEM_BUILDBLOCK) + intval(ITEM_TYPE_BUILDBLOCK) ); if($r) { -- cgit v1.2.3