Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 7193-7198 (lines=6) @@
7190
            if (!empty($extra_fields)) {
7191
                foreach ($extra_fields as $extra) {
7192
                    $inject_extra_fields .= " IF (fv.field_id = {$extra['id']}, fvo.option_display_text, NULL ) as {$extra['field']} , ";
7193
                    if (isset($extra_fields_info[$extra['id']])) {
7194
                        $info = $extra_fields_info[$extra['id']];
7195
                    } else {
7196
                        $info = $extra_field->get($extra['id']);
7197
                        $extra_fields_info[$extra['id']] = $info;
7198
                    }
7199
7200
                    if ($info['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
7201
                        $double_fields[$info['id']] = $info;

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

@@ 2228-2233 (lines=6) @@
2225
                        $inject_extra_fields .= " fv$counter.value as {$extra['field']}, ";
2226
                    }
2227
2228
                    if (isset($extra_fields_info[$extra['id']])) {
2229
                        $info = $extra_fields_info[$extra['id']];
2230
                    } else {
2231
                        $info = $this->get($extra['id']);
2232
                        $extra_fields_info[$extra['id']] = $info;
2233
                    }
2234
                    if (isset($info['field_type']) && $info['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
2235
                        $double_fields[$info['id']] = $info;
2236
                    }