mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not show message anymore, if keyword list is empty
This commit is contained in:
parent
c5b5ac07db
commit
f6fbcbadfa
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user