Code Duplication    Length = 6-6 lines in 2 locations

main/inc/lib/extra_field.lib.php 1 location

@@ 2372-2377 (lines=6) @@
2369
                        $inject_extra_fields .= " fv$counter.value as {$extra['field']}, ";
2370
                    }
2371
2372
                    if (isset($extra_fields_info[$extra['id']])) {
2373
                        $info = $extra_fields_info[$extra['id']];
2374
                    } else {
2375
                        $info = $this->get($extra['id']);
2376
                        $extra_fields_info[$extra['id']] = $info;
2377
                    }
2378
                    if (isset($info['field_type']) && $info['field_type'] == self::FIELD_TYPE_DOUBLE_SELECT) {
2379
                        $double_fields[$info['id']] = $info;
2380
                    }

main/inc/lib/sessionmanager.lib.php 1 location

@@ 7670-7675 (lines=6) @@
7667
            if (!empty($extra_fields)) {
7668
                foreach ($extra_fields as $extra) {
7669
                    $inject_extra_fields .= " IF (fv.field_id = {$extra['id']}, fvo.option_display_text, NULL ) as {$extra['field']} , ";
7670
                    if (isset($extra_fields_info[$extra['id']])) {
7671
                        $info = $extra_fields_info[$extra['id']];
7672
                    } else {
7673
                        $info = $extra_field->get($extra['id']);
7674
                        $extra_fields_info[$extra['id']] = $info;
7675
                    }
7676
7677
                    if ($info['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
7678
                        $double_fields[$info['id']] = $info;