mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:38:53 +00:00
[ticket/10561] Casted $config['default_style'] to int
PHPBB3-10561
This commit is contained in:
parent
03a35581c4
commit
4e630ef160
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ class ucp_prefs
|
|||
{
|
||||
if ($config['override_user_style'])
|
||||
{
|
||||
$data['style'] = $config['default_style'];
|
||||
$data['style'] = (int) $config['default_style'];
|
||||
}
|
||||
else if (!phpbb_style_is_active($data['style']))
|
||||
{
|
||||
|
|
|
@ -2045,7 +2045,7 @@ function change_database_data(&$no_updates, $version)
|
|||
if (!empty($deactivated_style_ids))
|
||||
{
|
||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||
SET user_style = ' . $config['default_style'] .'
|
||||
SET user_style = ' . (int) $config['default_style'] .'
|
||||
WHERE ' . $db->sql_in_set('user_style', $deactivated_style_ids);
|
||||
$result = $db->sql_query($sql);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue