aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data/v32x
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-09-08 15:02:29 +0200
committerRubén Calvo <rubencm@gmail.com>2017-09-08 15:02:29 +0200
commitbace8dd31f0a5c2f95ae612e7e1b2e6d3083613b (patch)
tree2912c408619057e741471c60fc71689f45d7c4ea /phpBB/phpbb/db/migration/data/v32x
parent4b1ec6abb7b2d2daa320ac5e2872e055bc5b07d0 (diff)
downloadforums-bace8dd31f0a5c2f95ae612e7e1b2e6d3083613b.tar
forums-bace8dd31f0a5c2f95ae612e7e1b2e6d3083613b.tar.gz
forums-bace8dd31f0a5c2f95ae612e7e1b2e6d3083613b.tar.bz2
forums-bace8dd31f0a5c2f95ae612e7e1b2e6d3083613b.tar.xz
forums-bace8dd31f0a5c2f95ae612e7e1b2e6d3083613b.zip
[ticket/15201] Add casting
PHPBB3-15201
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));
}
}