Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug: 816 - Leading and trailing spaces are removed from new tags (obs…
…erved in some bugged metadata).

git-svn-id: http://piwigo.org/svn/trunk@2350 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
vdigital committed May 18, 2008
1 parent 069748a commit 9b51fc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/include/functions.php
Expand Up @@ -1496,7 +1496,8 @@ function add_tags($tags, $images)
function tag_id_from_tag_name($tag_name)
{
global $page;


$tag_name = trim($tag_name);
if (isset($page['tag_id_from_tag_name_cache'][$tag_name]))
{
return $page['tag_id_from_tag_name_cache'][$tag_name];
Expand Down

0 comments on commit 9b51fc1

Please sign in to comment.