Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2273-2278 (lines=6) @@
2270
        $field_filter = null
2271
    ) {
2272
        // A sanity check.
2273
        if (empty($user_id)) {
2274
            $user_id = 0;
2275
        } else {
2276
            if ($user_id != strval(intval($user_id)))
2277
                return array();
2278
        }
2279
        $extra_data = array();
2280
        $t_uf = Database::get_main_table(TABLE_EXTRA_FIELD);
2281
        $t_ufv = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
@@ 2366-2371 (lines=6) @@
2363
        $splitmultiple = false
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);