Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
1b98e553
Commit
1b98e553
authored
Dec 05, 2017
by
jun
Browse files
Merge branch 'MDL-36056-master-fix1' of
http://github.com/damyon/moodle
parents
9e51dc40
387f7aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/form/passwordunmask.php
View file @
1b98e553
...
...
@@ -101,8 +101,7 @@ class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
* @return string|null Validation error message or null.
*/
public
function
validateSubmitValue
(
$value
)
{
if
(
$value
!==
trim
(
$value
))
{
if
(
$value
!==
null
&&
$value
!==
trim
(
$value
))
{
return
get_string
(
'err_wrappingwhitespace'
,
'core_form'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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