Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2289-2294 (lines=6) @@
2286
        $field_filter = null
2287
    ) {
2288
        // A sanity check.
2289
        if (empty($user_id)) {
2290
            $user_id = 0;
2291
        } else {
2292
            if ($user_id != strval(intval($user_id)))
2293
                return array();
2294
        }
2295
        $extra_data = array();
2296
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2297
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2382-2387 (lines=6) @@
2379
        $splitmultiple = false
2380
    ) {
2381
        // A sanity check.
2382
        if (empty($user_id)) {
2383
            $user_id = 0;
2384
        } else {
2385
            if ($user_id != strval(intval($user_id)))
2386
                return array();
2387
        }
2388
        $extra_data = array();
2389
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2390
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);