From: vyshane Date: Thu, 23 Mar 2006 02:34:37 +0000 (+0000) Subject: Fixed php notice for undeclared variable. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e64ef4f9b7cde6b4b36bca161983def6669ef6f4;p=moodle.git Fixed php notice for undeclared variable. --- diff --git a/login/index.php b/login/index.php index 61fafb5408..da5b8c0443 100644 --- a/login/index.php +++ b/login/index.php @@ -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;