Fix ignoring empty tags

dev
gravel 1 year ago
parent 6914324dca
commit 3ce79ab9a6
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -417,7 +417,7 @@
public function add_tags(array $tags) {
$new_string_tags = [];
foreach ($tags as $tag) {
if (strlen($tag) == 0) continue;
if (strlen(trim($tag)) == 0) continue;
$this->string_tags[] = $tag;
if ($this->parse_language_tag($tag)) continue;
$new_string_tags[] = $tag;

Loading…
Cancel
Save