Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2069-2074 (lines=6) @@
2066
        $field_filter = null
2067
    ) {
2068
        // A sanity check.
2069
        if (empty($user_id)) {
2070
            $user_id = 0;
2071
        } else {
2072
            if ($user_id != strval(intval($user_id)))
2073
                return array();
2074
        }
2075
        $extra_data = array();
2076
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2077
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2162-2167 (lines=6) @@
2159
        $splitmultiple = false
2160
    ) {
2161
        // A sanity check.
2162
        if (empty($user_id)) {
2163
            $user_id = 0;
2164
        } else {
2165
            if ($user_id != strval(intval($user_id)))
2166
                return array();
2167
        }
2168
        $extra_data = array();
2169
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2170
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);