diff --git a/lhc_web/lib/models/lhchat/erlhcoreclassmodelcannedmsg.php b/lhc_web/lib/models/lhchat/erlhcoreclassmodelcannedmsg.php index c63597b59..b8825c6fa 100644 --- a/lhc_web/lib/models/lhchat/erlhcoreclassmodelcannedmsg.php +++ b/lhc_web/lib/models/lhchat/erlhcoreclassmodelcannedmsg.php @@ -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);