mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
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)
This commit is contained in:
parent
cb8940256c
commit
e20f2e9333
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user