mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-22 16:40:21 +01:00
[ticket/15201] Set user style to default style when it is disabled or uninstalled
PHPBB3-15201
This commit is contained in:
parent
1e605efaf1
commit
0ced93ccd5
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user