Skip to content

Commit 0d43afe

Browse files
authored
Merge pull request #28 from GregMage/fix_id
fix: when using the tags for the first time, the id was displayed in …
2 parents 3c1697f + 8179201 commit 0d43afe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

class/FormTag.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public function __construct($name, int $size, $maxlength, $value = null, $catid
5555
$tags = $tagHandler->getByItem($value, $modid, $catid);
5656
if ($tags) {
5757
$value = \htmlspecialchars(\implode(', ', $tags), \ENT_QUOTES | \ENT_HTML5);
58-
}
58+
} else {
59+
$value = '';
60+
}
5961
}
6062
$caption = \_MD_TAG_TAGS;
6163
parent::__construct($caption, $name, $size, $maxlength, $value);

0 commit comments

Comments
 (0)