aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data/v32x
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v32x')
-rw-r--r--phpBB/phpbb/db/migration/data/v32x/fix_user_styles.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/fix_user_styles.php b/phpBB/phpbb/db/migration/data/v32x/fix_user_styles.php
index e0caae812a..282c6bef2f 100644
--- a/phpBB/phpbb/db/migration/data/v32x/fix_user_styles.php
+++ b/phpBB/phpbb/db/migration/data/v32x/fix_user_styles.php
@@ -43,8 +43,8 @@ class fix_user_styles extends \phpbb\db\migration\migration
$this->db->sql_freeresult($result);
// Set the default style to users who have an invalid style
- $this->sql_query('UPDATE ' . USERS_TABLE . "
- SET user_style = $default_style
- WHERE " . $this->db->sql_in_set('user_style', $enabled_styles, true));
+ $this->sql_query('UPDATE ' . USERS_TABLE . '
+ SET user_style = ' . (int) $default_style . '
+ WHERE ' . $this->db->sql_in_set('user_style', $enabled_styles, true));
}
}