diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-10-22 10:19:30 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-10-22 10:19:30 +0200 |
| commit | 3b5c624c03351b4e4acbfc1d1818576e04faea69 (patch) | |
| tree | 103af4d8423e513f62b8e9a4c1740a357c33f9e9 /phpBB/phpbb/user.php | |
| parent | 1d12d76790a2fa6d1fc746302cb2a33ec41c3341 (diff) | |
| parent | bace8dd31f0a5c2f95ae612e7e1b2e6d3083613b (diff) | |
| download | forums-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/phpbb/user.php')
| -rw-r--r-- | phpBB/phpbb/user.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index d4097f53ee..5899dff2f5 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -278,24 +278,6 @@ class user extends \phpbb\session $db->sql_freeresult($result); } - // User has wrong style - if (!$this->style && $style_id == $this->data['user_style']) - { - $style_id = $this->data['user_style'] = $config['default_style']; - - $sql = 'UPDATE ' . USERS_TABLE . " - SET user_style = $style_id - WHERE user_id = {$this->data['user_id']}"; - $db->sql_query($sql); - - $sql = 'SELECT * - FROM ' . STYLES_TABLE . " s - WHERE s.style_id = $style_id"; - $result = $db->sql_query($sql, 3600); - $this->style = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - } - if (!$this->style) { trigger_error('NO_STYLE_DATA', E_USER_ERROR); |
