improved handling of empty linklist

This commit is contained in:
Ralf Becker 2002-10-09 11:50:46 +00:00
parent 83b0d0cd36
commit 50e1a8236e

View File

@ -85,11 +85,12 @@
$extension_data = $value;
$links = $this->link->get_links($app,$id);
/* if (!count($links))
if (!count($links))
{
$cell = $tmpl->empty_cell();
return False;
} */
$value = '';
return True;
}
$tpl = new etemplate('etemplate.link_widget.list');
$tpl->data[0]['A'] = $tmpl->data[0]['A']; // set width of first col like the tmpl. calling us
for($row=$tpl->rows-1; list(,$link) = each($links); ++$row)