do not show message anymore, if keyword list is empty

This commit is contained in:
Uwe Steinmann 2021-05-04 17:35:24 +02:00
parent c5b5ac07db
commit f6fbcbadfa

View File

@ -142,8 +142,7 @@ myTA.focus();
$owner = $category->getOwner();
if($owner->isAdmin()) {
$lists = $category->getKeywordLists();
if(count($lists) == 0) print getMLText("no_default_keywords");
else {
if(count($lists)) {
$kw = array();
foreach ($lists as $list) {
$kw[] = "<a class=\"insertkeyword\" keyword=\"".htmlspecialchars($list["keywords"])."\"><span class=\"badge badge-secondary\">".htmlspecialchars($list["keywords"])."</span></a>";
@ -180,8 +179,7 @@ myTA.focus();
$owner = $category->getOwner();
if(!$owner->isAdmin()) {
$lists = $category->getKeywordLists();
if(count($lists) == 0) print getMLText("no_default_keywords");
else {
if(count($lists)) {
$kw = array();
foreach ($lists as $list) {
$kw[] = "<a class=\"insertkeyword\" keyword=\"".htmlspecialchars($list["keywords"])."\"><span class=\"badge badge-secondary\">".htmlspecialchars($list["keywords"])."</span></a>";