aboutsummaryrefslogtreecommitdiffstats
path: root/action.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--action.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/action.php b/action.php
index c0cab23de..586d730a3 100644
--- a/action.php
+++ b/action.php
@@ -80,15 +80,15 @@ if ( empty($element_info) )
{
do_error(404, 'Requested id not found');
}
-
-// $filter['visible_categories'] and $filter['visible_images']
+
+// $filter['visible_categories'] and $filter['visible_images']
// are not used because it's not necessary (filter <> restriction)
$query='
SELECT id FROM '.CATEGORIES_TABLE.'
INNER JOIN '.IMAGE_CATEGORY_TABLE.'
ON category_id=id
- WHERE image_id='.$id.'
-.'get_sql_condition_FandF(array('forbidden_categories' => 'category_id'), 'AND').'
+ WHERE image_id='.$id.'
+'.get_sql_condition_FandF(array('forbidden_categories' => 'category_id'), 'AND').'
LIMIT 1
;';
if ( mysql_num_rows(pwg_query($query))<1 )