Fixed php notice for undeclared variable.

This commit is contained in:
vyshane 2006-03-23 02:34:37 +00:00
parent 6d727d75cf
commit e64ef4f9b7

View File

@ -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;