Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2316-2321 (lines=6) @@
2313
        $field_filter = null
2314
    ) {
2315
        // A sanity check.
2316
        if (empty($user_id)) {
2317
            $user_id = 0;
2318
        } else {
2319
            if ($user_id != strval(intval($user_id)))
2320
                return array();
2321
        }
2322
        $extra_data = array();
2323
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2324
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2409-2414 (lines=6) @@
2406
        $splitmultiple = false
2407
    ) {
2408
        // A sanity check.
2409
        if (empty($user_id)) {
2410
            $user_id = 0;
2411
        } else {
2412
            if ($user_id != strval(intval($user_id)))
2413
                return array();
2414
        }
2415
        $extra_data = array();
2416
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2417
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);