mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
fixed an "htmlspecialchars 1. param should be string, array given" error
This commit is contained in:
parent
7de4e0108d
commit
1053267a96
@ -329,7 +329,11 @@ class link_widget
|
||||
case 'link-entry':
|
||||
if ($cell['readonly'] || $readonlys)
|
||||
{
|
||||
if(!is_array($value)) $value = array('app' => $cell['size'],'id' => $value);
|
||||
if(!is_array($value))
|
||||
{
|
||||
if (strpos($value,':') !== false) list($app,$value) = explode(':',$value,2);
|
||||
$value = array('app' => $app ? $app : $cell['size'],'id' => $value);
|
||||
}
|
||||
$value = self::link2a_href($value,$help);
|
||||
$cell['type'] = 'html';
|
||||
$cell['readonly'] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user