Skip to content

Commit

Permalink
Empty tags should not be stored
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jan 17, 2022
1 parent bd3ebc8 commit 31ac7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lhc_web/lib/models/lhchat/erlhcoreclassmodelcannedmsg.php
Expand Up @@ -201,8 +201,8 @@ public function afterSave()
$tags[] = trim($tagKeyword);
}

$tags = array_unique($tags);
$tags = array_filter(array_unique($tags));

foreach ($tags as $tagKeyword) {
$tagKeywordTrimmed = trim($tagKeyword);

Expand Down

0 comments on commit 31ac7a7

Please sign in to comment.