From b2e5c6090dab6dadf90322308bd470f9a8ae323b Mon Sep 17 00:00:00 2001 From: PrestaLab Date: Tue, 5 Nov 2013 23:33:44 -0800 Subject: [PATCH] Fixed tags with UTF-8 chars Fixed error Tag->Name is not valid if tag in non latin chars --- classes/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tag.php b/classes/Tag.php index 3b57de7b2..e8a8198a9 100644 --- a/classes/Tag.php +++ b/classes/Tag.php @@ -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 */