Tag::explode instead of explode
this fixes the off chance that an empty tag could be passed
This commit is contained in:
parent
744989a983
commit
b11041898b
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||||
|
|
Reference in a new issue