From e64ef4f9b7cde6b4b36bca161983def6669ef6f4 Mon Sep 17 00:00:00 2001 From: vyshane Date: Thu, 23 Mar 2006 02:34:37 +0000 Subject: [PATCH] Fixed php notice for undeclared variable. --- login/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.5