Code Duplication    Length = 3-3 lines in 2 locations

geodirectory-admin/admin_functions.php 2 locations

@@ 704-706 (lines=3) @@
701
                    $attach_data = wp_generate_attachment_metadata($attach_id, $new_path);
702
                    wp_update_attachment_metadata($attach_id, $attach_data);
703
704
                    if (!get_tax_meta($last_catid['term_id'], 'ct_cat_icon', false, 'gd_place')) {
705
                        update_tax_meta($last_catid['term_id'], 'ct_cat_icon', array('id' => 'icon', 'src' => $new_url), 'gd_place');
706
                    }
707
                }
708
            }
709
@@ 750-752 (lines=3) @@
747
                $attach_data = wp_generate_attachment_metadata($attach_id, $new_path);
748
                wp_update_attachment_metadata($attach_id, $attach_data);
749
750
                if (!get_tax_meta($last_catid['term_id'], 'ct_cat_icon', false, 'gd_place')) {
751
                    update_tax_meta($last_catid['term_id'], 'ct_cat_icon', array('id' => $attach_id, 'src' => $new_url), 'gd_place');
752
                }
753
            }
754
        }
755