diff options
author | Hari Sankar R <hsr@theinglorio.us> | 2012-04-09 01:25:17 +0530 |
---|---|---|
committer | Hari Sankar R <hsr@theinglorio.us> | 2012-04-09 01:25:17 +0530 |
commit | 2a48284fc9125edad2dbd9de41dfb1ef61926b6b (patch) | |
tree | 56039d59c6ba288b9285fe214518c106f70242ec /phpBB/install/database_update.php | |
parent | 8442b19e59e3d07129c3ef5286ada84a3ac64b98 (diff) | |
download | forums-2a48284fc9125edad2dbd9de41dfb1ef61926b6b.tar forums-2a48284fc9125edad2dbd9de41dfb1ef61926b6b.tar.gz forums-2a48284fc9125edad2dbd9de41dfb1ef61926b6b.tar.bz2 forums-2a48284fc9125edad2dbd9de41dfb1ef61926b6b.tar.xz forums-2a48284fc9125edad2dbd9de41dfb1ef61926b6b.zip |
[ticket/10561] Removed extra tabs, changes made to $db->sql_query()
Substituted $db->sql_query() with _sql()
PHPBB3-10561
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r-- | phpBB/install/database_update.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index ba89a07e92..6097341ace 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -2031,8 +2031,8 @@ function change_database_data(&$no_updates, $version) case '3.0.10': // Updates users having current style a deactivated one $sql = 'SELECT style_id - FROM ' . STYLES_TABLE . ' - WHERE style_active = 0'; + FROM ' . STYLES_TABLE . ' + WHERE style_active = 0'; $result = $db->sql_query($sql); $deactivated_style_ids = array(); @@ -2045,9 +2045,9 @@ function change_database_data(&$no_updates, $version) if (!empty($deactivated_style_ids)) { $sql = 'UPDATE ' . USERS_TABLE . ' - SET user_style = ' . (int) $config['default_style'] .' - WHERE ' . $db->sql_in_set('user_style', $deactivated_style_ids); - $result = $db->sql_query($sql); + SET user_style = ' . (int) $config['default_style'] .' + WHERE ' . $db->sql_in_set('user_style', $deactivated_style_ids); + _sql($sql, $errored, $error_ary); } $no_updates = false; |