Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2082-2087 (lines=6) @@
2079
        $field_filter = null
2080
    ) {
2081
        // A sanity check.
2082
        if (empty($user_id)) {
2083
            $user_id = 0;
2084
        } else {
2085
            if ($user_id != strval(intval($user_id)))
2086
                return array();
2087
        }
2088
        $extra_data = array();
2089
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2090
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2175-2180 (lines=6) @@
2172
        $splitmultiple = false
2173
    ) {
2174
        // A sanity check.
2175
        if (empty($user_id)) {
2176
            $user_id = 0;
2177
        } else {
2178
            if ($user_id != strval(intval($user_id)))
2179
                return array();
2180
        }
2181
        $extra_data = array();
2182
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2183
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);