mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-01 03:54:56 +02:00
git-svn-id: file:///svn/phpbb/trunk@7475 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dab3572083
commit
95c564636f
@ -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'] . "
|
||||
|
Loading…
x
Reference in New Issue
Block a user