diff options
author | Rubén Calvo <rubencm@gmail.com> | 2017-04-28 04:04:36 +0200 |
---|---|---|
committer | Rubén Calvo <rubencm@gmail.com> | 2017-08-28 18:33:38 +0200 |
commit | 0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6 (patch) | |
tree | 4fd6b9e4cdd302b2fc7cdb25a5c34d25df033280 /phpBB/includes | |
parent | 1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff) | |
download | forums-0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6.tar forums-0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6.tar.gz forums-0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6.tar.bz2 forums-0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6.tar.xz forums-0ced93ccd5cb3de54f51ead46d4ab87a0ce67dd6.zip |
[ticket/15201] Set user style to default style when it is disabled or uninstalled
PHPBB3-15201
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 4 |
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..a57c509abe 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 = ' . $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 = ' . $this->default_style . ' WHERE user_style = ' . $id; $this->db->sql_query($sql); |