From: defacer Date: Mon, 13 Dec 2004 18:38:18 +0000 (+0000) Subject: At last, fixed that despicable notice when logging in by converting direct X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7692b11451c2bf2caf03c40f112b83239125a1a6;p=moodle.git At last, fixed that despicable notice when logging in by converting direct array access to get_user_preference(), as it should be. Removed reload_user_preferences() call, it's not needed and I saw one other such call somewhere around here which M.D. has commented out (without creating trouble, obviously). --- diff --git a/login/index.php b/login/index.php index 47fc12b49d..aa6352a1e7 100644 --- a/login/index.php +++ b/login/index.php @@ -100,8 +100,7 @@ // check whether the user should be changing password - reload_user_preferences(); - if ($USER->preference['auth_forcepasswordchange']){ + if (get_user_preferences('auth_forcepasswordchange', false)){ if (isset($passwordchangeurl)) { redirect($passwordchangeurl); } else {