From 1e258af4136567ab30ce9b54aee751077f80590e Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 8 May 2012 21:25:49 -0700 Subject: BUGFIX: removed side effect from getting the user's preferences: the language used could be overwritten by another user's choise the DB_get_Prefs($myid) functions used to set the _SESSION variable for the language, but was also called with ids that belonged to other players overwriting the language settings with that from another user --- include/user.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/user.php') diff --git a/include/user.php b/include/user.php index 3d0b729..1b3d83e 100644 --- a/include/user.php +++ b/include/user.php @@ -121,6 +121,8 @@ else $_SESSION['name'] = $myname; $PREF = DB_get_PREF($myid); + /* set language chosen in preferences, will become active on the next reload (see index.php)*/ + $_SESSION['language'] = $PREF['language']; DB_update_user_timestamp($myid); -- cgit v1.2.3-18-g5258