]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed php notice for undeclared variable.
authorvyshane <vyshane>
Thu, 23 Mar 2006 02:34:37 +0000 (02:34 +0000)
committervyshane <vyshane>
Thu, 23 Mar 2006 02:34:37 +0000 (02:34 +0000)
login/index.php

index 61fafb54081d993afb1efc7fdd07a0b115869603..da5b8c0443d766d6a7b2025fda5b6fafac254ebe 100644 (file)
     } 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;