Commit ef4b3063 authored by Laura Heimann's avatar Laura Heimann

filter out empty tags

parent 51dfcfdd
......@@ -250,7 +250,7 @@ class Song
public function getTagsArray()
{
return array_map('trim', explode(",", $this->tags));
return array_filter( array_map('trim', explode(",", $this->tags) ), 'strlen');
}
public function setTags(?string $tags): self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment