fixed bug with empty description

This commit is contained in:
o.pinke 2023-02-10 11:52:16 +01:00
parent efa03003be
commit c0e250a21f
3 changed files with 5 additions and 5 deletions

View file

@ -118,7 +118,7 @@ $db->query($sql);
while ($db->next_record()) {
$tplname = clHtmlEntities($db->f("name"));
$description = clHtmlEntities($db->f("description"));
$description = empty($db->f("description"))?'':clHtmlEntities($db->f("description"));
$sTable .= $table->row();
$sTable .= $table->cell($tplname,"", "", " class=\"td_rights0\"", false);

View file

@ -117,7 +117,7 @@ $db->query($sql);
while ($db->next_record()) {
$tplname = clHtmlEntities($db->f("name"));
$description = clHtmlEntities($db->f("description"));
$description = empty($db->f("description"))?'':clHtmlEntities($db->f("description"));
$sTable .= $table->row();
$sTable .= $table->cell($tplname,"", "", " class=\"td_rights0\"", false);

View file

@ -112,14 +112,14 @@ foreach ($aSecondHeaderRow as $value) {
$sTable .= $table->end_row();
//Select the itemid<EFBFBD>s
//Select the itemid
$sql = "SELECT * FROM ".$cfg["tab"]["tpl"]." WHERE idclient='".Contenido_Security::toInteger($rights_client)."' ORDER BY name";
$db->query($sql);
while ($db->next_record()) {
$tplname = clHtmlEntities($db->f("name"));
$description = clHtmlEntities($db->f("description"));
$tplname = clHtmlEntities($db->f("name"));
$description = empty($db->f("description"))?'':clHtmlEntities($db->f("description"));
$sTable .= $table->row();
$sTable .= $table->cell($tplname,"", "", " class=\"td_rights0\"", false);