Code Duplication    Length = 6-6 lines in 2 locations

main/admin/user_import.php 1 location

@@ 103-108 (lines=6) @@
100
        }
101
102
        // 5. Check authentication source
103
        if (!empty($user['AuthSource'])) {
104
            if (!in_array($user['AuthSource'], $defined_auth_sources)) {
105
                $user['error'] = get_lang('AuthSourceNotAvailable');
106
                $errors[] = $user;
107
            }
108
        }
109
    }
110
111
    return $errors;

main/admin/user_update_import.php 1 location

@@ 90-95 (lines=6) @@
87
        }
88
89
        // 5. Check authentication source
90
        if (!empty($user['AuthSource'])) {
91
            if (!in_array($user['AuthSource'], $defined_auth_sources)) {
92
                $user['error'] = get_lang('AuthSourceNotAvailable');
93
                $errors[] = $user;
94
            }
95
        }
96
    }
97
98
    return $errors;