Fixed tags with UTF-8 chars

Fixed error Tag->Name is not valid if tag in non latin chars
This commit is contained in:
PrestaLab
2013-11-05 23:33:44 -08:00
parent d4253b9849
commit b2e5c6090d
+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 */