Explode colon seperated values server-side to prevent warnings when expecting arrays

This commit is contained in:
Nathan Gray 2013-06-11 15:36:01 +00:00
parent 8d07c880ad
commit 446034c58f

View File

@ -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)
{