Code Duplication    Length = 6-6 lines in 2 locations

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

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