forked from extern/egroupware
Explode colon seperated values server-side to prevent warnings when expecting arrays
This commit is contained in:
parent
8d07c880ad
commit
446034c58f
@ -63,6 +63,8 @@ class etemplate_widget_link extends etemplate_widget
|
||||
if(!is_array(explode(':',$value))) {
|
||||
throw new egw_exception_wrong_parameter("Wrong value sent to link widget, needs to be an array. ".array2string($value));
|
||||
}
|
||||
list($app, $id) = explode(':', $value,2);
|
||||
$value = array('app' => $app, 'id' => $id);
|
||||
}
|
||||
elseif (!$value)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user