Browse files

[ticket/10561] Casted $config['default_style'] to int

PHPBB3-10561
  • Loading branch information...
1 parent 03a3558 commit 4e630ef1601ef39c7947de7d071fdccf68f52e3b Hari Sankar R committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 phpBB/includes/ucp/ucp_prefs.php
  2. +1 −1 phpBB/install/database_update.php
View
2 phpBB/includes/ucp/ucp_prefs.php
@@ -63,7 +63,7 @@ function main($id, $mode)
{
if ($config['override_user_style'])
{
- $data['style'] = $config['default_style'];
+ $data['style'] = (int) $config['default_style'];
}
else if (!phpbb_style_is_active($data['style']))
{
View
2 phpBB/install/database_update.php
@@ -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);
}

0 comments on commit 4e630ef

Please sign in to comment.