mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 22:45:54 +02:00
Fixed php notice for undeclared variable.
This commit is contained in:
parent
6d727d75cf
commit
e64ef4f9b7
@ -247,8 +247,11 @@
|
||||
} else {
|
||||
$focus = "login.username";
|
||||
}
|
||||
|
||||
if ($CFG->auth == "email" or $CFG->auth == "none" or chop($CFG->auth_instructions) <> "" ) {
|
||||
|
||||
if (isset($CFG->auth_instructions)) {
|
||||
$CFG->auth_instructions = trim($CFG->auth_instructions);
|
||||
}
|
||||
if ($CFG->auth == "email" or $CFG->auth == "none" or !empty($CFG->auth_instructions)) {
|
||||
$show_instructions = true;
|
||||
} else {
|
||||
$show_instructions = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user