mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10561] Removed extra tabs, changes made to $db->sql_query()
Substituted $db->sql_query() with _sql() PHPBB3-10561
This commit is contained in:
parent
8442b19e59
commit
2a48284fc9
1 changed files with 5 additions and 5 deletions
|
@ -2031,8 +2031,8 @@ function change_database_data(&$no_updates, $version)
|
||||||
case '3.0.10':
|
case '3.0.10':
|
||||||
// Updates users having current style a deactivated one
|
// Updates users having current style a deactivated one
|
||||||
$sql = 'SELECT style_id
|
$sql = 'SELECT style_id
|
||||||
FROM ' . STYLES_TABLE . '
|
FROM ' . STYLES_TABLE . '
|
||||||
WHERE style_active = 0';
|
WHERE style_active = 0';
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$deactivated_style_ids = array();
|
$deactivated_style_ids = array();
|
||||||
|
@ -2045,9 +2045,9 @@ function change_database_data(&$no_updates, $version)
|
||||||
if (!empty($deactivated_style_ids))
|
if (!empty($deactivated_style_ids))
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . USERS_TABLE . '
|
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||||
SET user_style = ' . (int) $config['default_style'] .'
|
SET user_style = ' . (int) $config['default_style'] .'
|
||||||
WHERE ' . $db->sql_in_set('user_style', $deactivated_style_ids);
|
WHERE ' . $db->sql_in_set('user_style', $deactivated_style_ids);
|
||||||
$result = $db->sql_query($sql);
|
_sql($sql, $errored, $error_ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
$no_updates = false;
|
$no_updates = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue