aboutsummaryrefslogtreecommitdiffstats
path: root/services/recent.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/recent.php')
-rw-r--r--services/recent.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/services/recent.php b/services/recent.php
index 59b1ffd4a..808b5a165 100644
--- a/services/recent.php
+++ b/services/recent.php
@@ -1,7 +1,16 @@
<?php
-$where = ( $user['forbidden_categories'] == '') ? '' :
- 'ic.`category_id` NOT IN ('.$user['forbidden_categories'].')';
+$where =
+ get_sql_condition_FandF
+ (
+ array
+ (
+ 'forbidden_categories' => 'ic.category_id',
+ 'visible_categories' => 'ic.category_id',
+ 'visible_images' => 'i.id'
+ ),
+ ''
+ );
$list = implode(',', $final);
if ( $where !== '' and $list !== '' )
{