Code Duplication    Length = 5-5 lines in 2 locations

views/core/settings.php 1 location

@@ 19-23 (lines=5) @@
16
                $settings['donorFormat'] = 'donatorlvl';
17
            }
18
19
            if ($_POST['lifeVersion'] == 5) {
20
                $settings['playerColumn'] = 'pid';
21
            } else {
22
                $settings['playerColumn'] = 'playerid';
23
            }
24
            $settings['lifeVersion'] = intval($_POST['lifeVersion']);
25
            $settings['lifeVersionDisplay'] = $_POST['lifeVersion'];
26

views/firstTime.php 1 location

@@ 100-104 (lines=5) @@
97
        $settings['2factor'] = false;
98
        $settings['gravatar'] = false;
99
        $settings['force2factor'] = 'none';
100
        if ($settings['lifeVersion'] == 5) {
101
            $settings['playerColumn'] = 'pid';
102
        } else {
103
            $settings['playerColumn'] = 'playerid';
104
        }
105
106
        $settings['steamAPI'] = '';
107
        $settings['vacTest'] = false;