Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 2391-2396 (lines=6) @@
2388
                        $inject_extra_fields .= " fv$counter.value as {$extra['field']}, ";
2389
                    }
2390
2391
                    if (isset($extra_fields_info[$extra['id']])) {
2392
                        $info = $extra_fields_info[$extra['id']];
2393
                    } else {
2394
                        $info = $this->get($extra['id']);
2395
                        $extra_fields_info[$extra['id']] = $info;
2396
                    }
2397
                    if (isset($info['field_type']) && $info['field_type'] == self::FIELD_TYPE_DOUBLE_SELECT) {
2398
                        $double_fields[$info['id']] = $info;
2399
                    }

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

@@ 7841-7846 (lines=6) @@
7838
            if (!empty($extra_fields)) {
7839
                foreach ($extra_fields as $extra) {
7840
                    $inject_extra_fields .= " IF (fv.field_id = {$extra['id']}, fvo.option_display_text, NULL ) as {$extra['field']} , ";
7841
                    if (isset($extra_fields_info[$extra['id']])) {
7842
                        $info = $extra_fields_info[$extra['id']];
7843
                    } else {
7844
                        $info = $extra_field->get($extra['id']);
7845
                        $extra_fields_info[$extra['id']] = $info;
7846
                    }
7847
7848
                    if ($info['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
7849
                        $double_fields[$info['id']] = $info;