aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index ef6449347..328a36ab7 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -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];