Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2365-2370 (lines=6) @@
2362
        $field_filter = null
2363
    ) {
2364
        // A sanity check.
2365
        if (empty($user_id)) {
2366
            $user_id = 0;
2367
        } else {
2368
            if ($user_id != strval(intval($user_id)))
2369
                return array();
2370
        }
2371
        $extra_data = array();
2372
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2373
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2458-2463 (lines=6) @@
2455
        $splitmultiple = false
2456
    ) {
2457
        // A sanity check.
2458
        if (empty($user_id)) {
2459
            $user_id = 0;
2460
        } else {
2461
            if ($user_id != strval(intval($user_id)))
2462
                return array();
2463
        }
2464
        $extra_data = array();
2465
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2466
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);