Skip to content

Commit

Permalink
Bug #14203 Fix handling of empty tag string.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 29, 2015
1 parent 4922efa commit 32ec4c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework/Core/lib/Horde/Core/Tagger.php
Expand Up @@ -88,7 +88,13 @@ public function __construct()
*/
public function split($tags)
{
// Short circuit empty tags since explode() will return an array
// such as [ 0 => '' ] in this case. See Bug #14203
if (empty($tags)) {
return array();
}
$split_tags = explode(',', $tags);

return array_map('trim', $split_tags);
}

Expand Down

0 comments on commit 32ec4c1

Please sign in to comment.