From e20f2e933374c3be9094b0938718cd72fd7fe795 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 29 Mar 2012 13:36:28 +0000 Subject: [PATCH] do not try to apply decodePath to an array (egw_link::title is handling this correctly if app is VFS_APPNAME and second argument is of type array) --- etemplate/inc/class.link_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.link_widget.inc.php b/etemplate/inc/class.link_widget.inc.php index b93171fc56..7c0d5ef88c 100644 --- a/etemplate/inc/class.link_widget.inc.php +++ b/etemplate/inc/class.link_widget.inc.php @@ -298,7 +298,7 @@ class link_widget for($row=$tpl->rows-1; list(,$link) = each($links); ++$row) { $value[$row] = $link; - $value[$row]['title'] = egw_link::title($link['app'],($link['app'] == egw_link::VFS_APPNAME?egw_vfs::decodePath($link['id']):$link['id']),$link); + $value[$row]['title'] = egw_link::title($link['app'],($link['app'] == egw_link::VFS_APPNAME&&!is_array($link['id'])?egw_vfs::decodePath($link['id']):$link['id']),$link); if (!is_array($link['id'])) { $value[$row]['view'] = egw_link::view($link['app'],$link['id'],$link);