tags returned by get_all_tags, get_available_tags contain id key instead of tag_id

(as expected by make_index_url, as $page['tags'] was and as the database model is)

git-svn-id: http://piwigo.org/svn/trunk@1815 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2007-02-14 01:37:38 +00:00
parent 711ebcbf2c
commit df3b43d356
8 changed files with 41 additions and 87 deletions

View file

@ -558,10 +558,10 @@ function get_html_tag_selection(
'<li>'
.'<label>'
.'<input type="checkbox" name="'.$fieldname.'[]"'
.' value="'.$tag['tag_id'].'"'
.' value="'.$tag['id'].'"'
;
if (in_array($tag['tag_id'], $selecteds))
if (in_array($tag['id'], $selecteds))
{
$output.= ' checked="checked"';
}