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

dilawar/moodle