diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-12-21 23:49:12 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-12-21 23:49:12 +0000 |
commit | b1a6316ca2f5f79891c6170049bfd06650847e49 (patch) | |
tree | 6875a8ac04560174d14ab4ed7a854ca66dbe04bf /action.php | |
parent | cab8f98c4ab88a0ad05f2359099c883675319084 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | action.php | 8 |
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 ) |