Tag::explode instead of explode

this fixes the off chance that an empty tag could be passed
This commit is contained in:
Daku 2015-10-08 18:28:00 +01:00
parent 744989a983
commit b11041898b

View file

@ -1247,7 +1247,7 @@ class Tag {
$i = 0; $i = 0;
$tag_count = count($tags); $tag_count = count($tags);
while($i<$tag_count) { while($i<$tag_count) {
$aliases = explode(' ', Tag::resolve_alias($tags[$i])); $aliases = Tag::explode(Tag::resolve_alias($tags[$i]), FALSE);
foreach($aliases as $alias){ foreach($aliases as $alias){
if(!in_array($alias, $new)){ if(!in_array($alias, $new)){
if($tags[$i] == $alias){ if($tags[$i] == $alias){