Permalink
Browse files

MDL-52017 enrol_self: fix incorrect empty statement

Ironically this was detected by causing a syntax error on php54
  • Loading branch information...
danpoltawski committed Dec 22, 2015
1 parent a53db0a commit 27527f6c364e096da92b9d10183f6fa86fa25780
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/self/edit_form.php
View
@@ -181,7 +181,7 @@ function validation($data, $files) {
$policy = $plugin->get_config('usepasswordpolicy');
if ($require and trim($data['password']) === '') {
$errors['password'] = get_string('required');
} else if (!empty($data['password'] && $policy)) {
} else if (!empty($data['password']) && $policy) {
$errmsg = '';
if (!check_password_policy($data['password'], $errmsg)) {
$errors['password'] = $errmsg;

0 comments on commit 27527f6

Please sign in to comment.