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
2c46ee5c
Commit
2c46ee5c
authored
Nov 08, 2006
by
Nigel McNie
Committed by
Nigel McNie
Nov 08, 2006
Browse files
Define the $r object before use (I fixed it on the wiki too). Minor whitespace.
parent
76bf4114
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/form/rules/required.php
View file @
2c46ee5c
...
...
@@ -47,11 +47,10 @@ function form_rule_required($field) {
* string The error message, if the value is invalid.
*/
function
form_rule_required_js
(
$id
)
{
$r
=
new
StdClass
;
$r
->
condition
=
'$(\''
.
$id
.
'\').value != \'\''
;
$r
->
message
=
get_string
(
'This field is required'
);
return
$r
;
}
?>
Write
Preview
Markdown
is supported
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