fixed exception with text "0"

This commit is contained in:
Ralf Becker 2011-09-09 16:30:20 +00:00
parent a5ea1f78d9
commit 4600445527

View File

@ -61,14 +61,14 @@ class etemplate_widget_link extends etemplate_widget
if(!is_array($value)) if(!is_array($value))
{ {
throw new egw_exception_wrong_parameter("Wrong value sent to link widget, needs to be an array. " + array2string($value)); throw new egw_exception_wrong_parameter("Wrong value sent to link widget, needs to be an array. ".array2string($value));
} }
$app = $value['to_app']; $app = $value['to_app'];
$id = $value['to_id']; $id = $value['to_id'];
$help = $attrs['help'] ? ($value['help'] ? $value['help'] : $attrs['help']) : lang('view this linked entry in its application'); // ToDo: implement on client-side
self::setElementAttribute($cname, 'help', $help); if (!$attrs['help']) self::setElementAttribute($form_name, 'help', 'view this linked entry in its application');
if($attrs['type'] == 'link-list') { if($attrs['type'] == 'link-list') {
$links = egw_link::get_links($app,$id,'','link_lastmod DESC',true, $value['show_deleted']); $links = egw_link::get_links($app,$id,'','link_lastmod DESC',true, $value['show_deleted']);