mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 01:18:42 +01:00
improved handling of empty linklist
This commit is contained in:
parent
83b0d0cd36
commit
50e1a8236e
@ -85,11 +85,12 @@
|
|||||||
$extension_data = $value;
|
$extension_data = $value;
|
||||||
|
|
||||||
$links = $this->link->get_links($app,$id);
|
$links = $this->link->get_links($app,$id);
|
||||||
/* if (!count($links))
|
if (!count($links))
|
||||||
{
|
{
|
||||||
$cell = $tmpl->empty_cell();
|
$cell = $tmpl->empty_cell();
|
||||||
return False;
|
$value = '';
|
||||||
} */
|
return True;
|
||||||
|
}
|
||||||
$tpl = new etemplate('etemplate.link_widget.list');
|
$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
|
$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)
|
for($row=$tpl->rows-1; list(,$link) = each($links); ++$row)
|
||||||
|
Loading…
Reference in New Issue
Block a user