[-] BO : tag saving does not crash with a bad line ending anymore #PSCFV-5663
This commit is contained in:
1 parent
95d26cbcb7
commit
bd4085ac20
1 file changed
+1
-1
+1
-1
@@ -98,7 +98,7 @@ class TagCore extends ObjectModel
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!is_array($tag_list))
|
if (!is_array($tag_list))
|
||||||
$tag_list = array_unique(array_map('trim', preg_split('#\\'.$separator.'#', $tag_list, null, PREG_SPLIT_NO_EMPTY)));
|
$tag_list = array_filter(array_unique(array_map('trim', preg_split('#\\'.$separator.'#', $tag_list, null, PREG_SPLIT_NO_EMPTY))));
|
||||||
|
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($tag_list as $tag)
|
foreach ($tag_list as $tag)
|
||||||
|
|||||||
Reference in new issue
Block a user