diff options
Diffstat (limited to 'action.php')
-rw-r--r-- | action.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/action.php b/action.php index bd62b2bb3..d1d382c35 100644 --- a/action.php +++ b/action.php @@ -89,7 +89,10 @@ SELECT id INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON category_id = id WHERE image_id = '.$_GET['id'].' '.get_sql_condition_FandF( - array('forbidden_categories' => 'category_id'), + array( + 'forbidden_categories' => 'category_id', + 'forbidden_images' => 'image_id', + ), ' AND' ).' LIMIT 1 |