Bug: 816 - Leading and trailing spaces are removed from new tags (observed in some bugged metadata).

git-svn-id: http://piwigo.org/svn/trunk@2350 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
vdigital
2008-05-18 07:15:23 +00:00
parent 069748aa91
commit 9b51fc1173
+2 -1
View File
@@ -1496,7 +1496,8 @@ DELETE
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];