Code Duplication    Length = 6-6 lines in 2 locations

main/inc/lib/usermanager.lib.php 2 locations

@@ 2073-2078 (lines=6) @@
2070
        $field_filter = null
2071
    ) {
2072
        // A sanity check.
2073
        if (empty($user_id)) {
2074
            $user_id = 0;
2075
        } else {
2076
            if ($user_id != strval(intval($user_id)))
2077
                return array();
2078
        }
2079
        $extra_data = array();
2080
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2081
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2166-2171 (lines=6) @@
2163
        $splitmultiple = false
2164
    ) {
2165
        // A sanity check.
2166
        if (empty($user_id)) {
2167
            $user_id = 0;
2168
        } else {
2169
            if ($user_id != strval(intval($user_id)))
2170
                return array();
2171
        }
2172
        $extra_data = array();
2173
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2174
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);