mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/10561] Casted $config['default_style'] to int
PHPBB3-10561
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user