Commit 1b98e553 authored by jun's avatar jun

Merge branch 'MDL-36056-master-fix1' of http://github.com/damyon/moodle

parents 9e51dc40 387f7aae
......@@ -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');
}
......
Markdown is supported
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