Merge pull request #932 from prestalab/patch-1

// FIX: tags with UTF-8 chars
This commit is contained in:
Jérôme Nadaud
2013-11-05 23:49:43 -08:00
+1 -1
View File
@@ -105,7 +105,7 @@ class TagCore extends ObjectModel
{
if (!Validate::isGenericName($tag))
return false;
$tag = trim(substr($tag, 0, self::$definition['fields']['name']['size']));
$tag = trim(Tools::substr($tag, 0, self::$definition['fields']['name']['size']));
$tag_obj = new Tag(null, $tag, (int)$id_lang);
/* Tag does not exist in database */