mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01:00
fixed an "htmlspecialchars 1. param should be string, array given" error
This commit is contained in:
parent
3f35a9c3f3
commit
ab48d9b338
@ -328,7 +328,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