fixed bug with empty description
This commit is contained in:
parent
efa03003be
commit
c0e250a21f
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue