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).
// 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 {