Commit ea5a0c4f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

json_encode default params

parent 66546c30
......@@ -74,9 +74,9 @@ function pieform_element_userlist(Pieform $form, $element) {
}
$smarty->assign('searchscript', $element['searchscript']);
if (empty($element['searchparams'])) {
$element['searchparams'] = "{'query':'', 'limit':100}";
$element['searchparams'] = array('query' => '', 'limit' => 100);
}
$smarty->assign('searchparams', $element['searchparams']);
$smarty->assign('searchparams', json_encode($element['searchparams']));
return $smarty->fetch('form/userlist.tpl');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment