mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Fixed isset and empty checks on userdata so user prefs now work again
git-svn-id: file:///svn/phpbb/trunk@468 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
36da30d221
commit
ff8040ab06
1 changed files with 20 additions and 18 deletions
|
@ -201,27 +201,29 @@ function init_userprefs($userdata)
|
|||
{
|
||||
$theme = setuptheme($board_config['override_user_themes']);
|
||||
}
|
||||
if(!empty($userdata['user_lang']))
|
||||
|
||||
if($userdata['user_id'] != ANONYMOUS || $userdata['user_id'] != DELETED)
|
||||
{
|
||||
$board_config['default_lang'] = $userdata['user_lang'];
|
||||
}
|
||||
if(!empty($userdata['user_dateformat']))
|
||||
{
|
||||
$board_config['default_dateformat'] = $userdata['user_dateformat'];
|
||||
}
|
||||
if(isset($userdata['user_timezone']))
|
||||
{
|
||||
$board_config['default_timezone'] = $userdata['user_timezone'];
|
||||
if(!empty($userdata['user_lang']))
|
||||
{
|
||||
$board_config['default_lang'] = $userdata['user_lang'];
|
||||
}
|
||||
if(!empty($userdata['user_dateformat']))
|
||||
{
|
||||
$board_config['default_dateformat'] = $userdata['user_dateformat'];
|
||||
}
|
||||
if(isset($userdata['user_timezone']))
|
||||
{
|
||||
$board_config['default_timezone'] = $userdata['user_timezone'];
|
||||
}
|
||||
if(!empty($userdata['user_template']))
|
||||
{
|
||||
$board_config['default_template'] = $userdata['user_template'];
|
||||
}
|
||||
}
|
||||
|
||||
// Setup user's Template
|
||||
if(!empty($userdata['user_template']))
|
||||
{
|
||||
$template = new Template("templates/".$userdata['user_template']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$template = new Template("templates/".$board_config['default_template']);
|
||||
}
|
||||
$template = new Template("templates/" . $board_config['default_template']);
|
||||
|
||||
//
|
||||
// This is currently worthless since all the individual
|
||||
|
|
Loading…
Add table
Reference in a new issue