aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-10-22 10:19:30 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-10-22 10:19:30 +0200
commit3b5c624c03351b4e4acbfc1d1818576e04faea69 (patch)
tree103af4d8423e513f62b8e9a4c1740a357c33f9e9 /phpBB/includes
parent1d12d76790a2fa6d1fc746302cb2a33ec41c3341 (diff)
parentbace8dd31f0a5c2f95ae612e7e1b2e6d3083613b (diff)
downloadforums-3b5c624c03351b4e4acbfc1d1818576e04faea69.tar
forums-3b5c624c03351b4e4acbfc1d1818576e04faea69.tar.gz
forums-3b5c624c03351b4e4acbfc1d1818576e04faea69.tar.bz2
forums-3b5c624c03351b4e4acbfc1d1818576e04faea69.tar.xz
forums-3b5c624c03351b4e4acbfc1d1818576e04faea69.zip
Merge pull request #4930 from rubencm/ticket/15201
[ticket/15201] Set user style to default style when it is disabled or uninstalled
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_styles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index b954f90451..5b31417b83 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -398,7 +398,7 @@ class acp_styles
// Reset default style for users who use selected styles
$sql = 'UPDATE ' . USERS_TABLE . '
- SET user_style = 0
+ SET user_style = ' . (int) $this->default_style . '
WHERE user_style IN (' . implode(', ', $ids) . ')';
$this->db->sql_query($sql);
@@ -1249,7 +1249,7 @@ class acp_styles
// Change default style for users
$sql = 'UPDATE ' . USERS_TABLE . '
- SET user_style = 0
+ SET user_style = ' . (int) $this->default_style . '
WHERE user_style = ' . $id;
$this->db->sql_query($sql);