Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ea5a0c4f
Commit
ea5a0c4f
authored
Nov 30, 2007
by
Richard Mansfield
Browse files
json_encode default params
parent
66546c30
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/form/elements/userlist.php
View file @
ea5a0c4f
...
...
@@ -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'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment