aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_styles.php
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-04-28 12:01:51 +0200
committerRubén Calvo <rubencm@gmail.com>2017-08-28 18:33:38 +0200
commitb0a22163261075932a92c6c46b36c57c104c3493 (patch)
tree12afea4852d59a19e513d0827b6cd5b1741cba32 /phpBB/includes/acp/acp_styles.php
parent0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6 (diff)
downloadforums-b0a22163261075932a92c6c46b36c57c104c3493.tar
forums-b0a22163261075932a92c6c46b36c57c104c3493.tar.gz
forums-b0a22163261075932a92c6c46b36c57c104c3493.tar.bz2
forums-b0a22163261075932a92c6c46b36c57c104c3493.tar.xz
forums-b0a22163261075932a92c6c46b36c57c104c3493.zip
[ticket/15201] Castings
PHPBB3-15201
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
-rw-r--r--phpBB/includes/acp/acp_styles.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index a57c509abe..fc6cf26f70 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -398,7 +398,9 @@ class acp_styles
// Reset default style for users who use selected styles
$sql = 'UPDATE ' . USERS_TABLE . '
- SET user_style = ' . $this->default_style . '
+ SET user_style = ' . (int) $this->default_style
+.
+'
WHERE user_style IN (' . implode(', ', $ids) . ')';
$this->db->sql_query($sql);
@@ -1249,7 +1251,9 @@ class acp_styles
// Change default style for users
$sql = 'UPDATE ' . USERS_TABLE . '
- SET user_style = ' . $this->default_style . '
+ SET user_style = ' . (int) $this->default_style
+.
+'
WHERE user_style = ' . $id;
$this->db->sql_query($sql);