From 4600445527d8425853b5e571bcbf30c54556685e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 9 Sep 2011 16:30:20 +0000 Subject: [PATCH] fixed exception with text "0" --- etemplate/inc/class.etemplate_widget_link.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etemplate/inc/class.etemplate_widget_link.inc.php b/etemplate/inc/class.etemplate_widget_link.inc.php index 3e8ad7eade..e0bf98029a 100644 --- a/etemplate/inc/class.etemplate_widget_link.inc.php +++ b/etemplate/inc/class.etemplate_widget_link.inc.php @@ -61,14 +61,14 @@ class etemplate_widget_link extends etemplate_widget 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']; $id = $value['to_id']; - $help = $attrs['help'] ? ($value['help'] ? $value['help'] : $attrs['help']) : lang('view this linked entry in its application'); - self::setElementAttribute($cname, 'help', $help); + // ToDo: implement on client-side + if (!$attrs['help']) self::setElementAttribute($form_name, 'help', 'view this linked entry in its application'); if($attrs['type'] == 'link-list') { $links = egw_link::get_links($app,$id,'','link_lastmod DESC',true, $value['show_deleted']); @@ -111,7 +111,7 @@ error_log("$app, $pattern, $options"); } } $result = egw_link::link($app, $id, $links); - + $response = egw_json_response::get(); $response->data($result !== false); }