diff options
Diffstat (limited to 'mod/home.php')
-rw-r--r-- | mod/home.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/home.php b/mod/home.php index 85c89a623..68ffc1807 100644 --- a/mod/home.php +++ b/mod/home.php @@ -82,7 +82,7 @@ function home_content(&$a, $update = 0, $load = false) { $r = q("select item.* from item left join item_id on item.id = item_id.iid where item.uid = %d and ( sid = '%s' or sid like '%s' ) and service = 'WEBPAGE' and - item_restrict = %d ORDER BY $randfunc limit 1", + item_type = %d ORDER BY $randfunc limit 1", intval($u[0]['channel_id']), dbesc($page_id), dbesc($randpage_id), |