Very small corrections:

- syntax error (action.php)
- language (call to l10n_dec and English language)
- replace some fetch_array with fetch_assoc (less memory used)
- removed one unnecessary assign_block_vars
- removed meta name="robots" (conflict with notification.php)


git-svn-id: http://piwigo.org/svn/trunk@1678 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2006-12-21 23:49:12 +00:00
parent cab8f98c4a
commit b1a6316ca2
7 changed files with 12 additions and 18 deletions
+4 -4
View File
@@ -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 )