Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 7234-7239 (lines=6) @@
7231
            if (!empty($extra_fields)) {
7232
                foreach ($extra_fields as $extra) {
7233
                    $inject_extra_fields .= " IF (fv.field_id = {$extra['id']}, fvo.option_display_text, NULL ) as {$extra['field']} , ";
7234
                    if (isset($extra_fields_info[$extra['id']])) {
7235
                        $info = $extra_fields_info[$extra['id']];
7236
                    } else {
7237
                        $info = $extra_field->get($extra['id']);
7238
                        $extra_fields_info[$extra['id']] = $info;
7239
                    }
7240
7241
                    if ($info['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
7242
                        $double_fields[$info['id']] = $info;

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

@@ 1989-1994 (lines=6) @@
1986
                        $inject_extra_fields .= " fv$counter.value as {$extra['field']}, ";
1987
                    }
1988
1989
                    if (isset($extra_fields_info[$extra['id']])) {
1990
                        $info = $extra_fields_info[$extra['id']];
1991
                    } else {
1992
                        $info = $this->get($extra['id']);
1993
                        $extra_fields_info[$extra['id']] = $info;
1994
                    }
1995
                    if (isset($info['field_type']) && $info['field_type'] == ExtraField::FIELD_TYPE_DOUBLE_SELECT) {
1996
                        $double_fields[$info['id']] = $info;
1997
                    }