From 17037270bc5e5d6d52a219e0d56fcc3372b65973 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 21 May 2006 07:51:27 +0000 Subject: [PATCH] proper initialisation of passwordchangeurl; merged from MOODLE_16_STABLE --- login/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/login/index.php b/login/index.php index 50a091b438..6ba0ab2cf1 100644 --- a/login/index.php +++ b/login/index.php @@ -144,11 +144,13 @@ $passwordchangeurl=$CFG->wwwroot.'/login/change_password.php'; } elseif($CFG->changepassword) { $passwordchangeurl=$CFG->changepassword; - } + } else { + $passwordchangeurl = ''; + } // check whether the user should be changing password if (get_user_preferences('auth_forcepasswordchange', false) || $frm->password == 'changeme'){ - if (isset($passwordchangeurl)) { + if ($passwordchangeurl != '') { redirect($passwordchangeurl); } else { error("You cannot proceed without changing your password. -- 2.39.5