aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/style.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-05-05 17:59:14 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-05-05 17:59:14 +0000
commit95c564636ff34cc30a48475f9ca0e23a8106fc5a (patch)
tree80535084f849fffd66856807aff42415362fa725 /phpBB/style.php
parentdab35720835384b6d05c7a57069649e0602fc2e4 (diff)
downloadforums-95c564636ff34cc30a48475f9ca0e23a8106fc5a.tar
forums-95c564636ff34cc30a48475f9ca0e23a8106fc5a.tar.gz
forums-95c564636ff34cc30a48475f9ca0e23a8106fc5a.tar.bz2
forums-95c564636ff34cc30a48475f9ca0e23a8106fc5a.tar.xz
forums-95c564636ff34cc30a48475f9ca0e23a8106fc5a.zip
#10497
git-svn-id: file:///svn/phpbb/trunk@7475 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
-rw-r--r--phpBB/style.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/style.php b/phpBB/style.php
index 38ffd5426b..150261aba6 100644
--- a/phpBB/style.php
+++ b/phpBB/style.php
@@ -71,7 +71,7 @@ if ($id && $sid)
$config = $cache->obtain_config();
- $sql = 'SELECT s.session_id, u.user_lang
+ $sql = 'SELECT u.user_id, u.user_lang
FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
WHERE s.session_id = '" . $db->sql_escape($sid) . "'
AND s.session_user_id = u.user_id";
@@ -91,6 +91,11 @@ if ($id && $sid)
$theme = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
+ if ($user['user_id'] == ANONYMOUS)
+ {
+ $user['user_lang'] = $config['default_lang'];
+ }
+
$sql = 'SELECT *
FROM ' . STYLES_IMAGESET_DATA_TABLE . '
WHERE imageset_id = ' . $theme['imageset_id'] . "