Code Duplication    Length = 3-3 lines in 2 locations

geodirectory-admin/admin_functions.php 2 locations

@@ 684-686 (lines=3) @@
681
                    $attach_data = wp_generate_attachment_metadata($attach_id, $new_path);
682
                    wp_update_attachment_metadata($attach_id, $attach_data);
683
684
                    if (!get_tax_meta($last_catid['term_id'], 'ct_cat_icon', false, 'gd_place')) {
685
                        update_tax_meta($last_catid['term_id'], 'ct_cat_icon', array('id' => 'icon', 'src' => $new_url), 'gd_place');
686
                    }
687
                }
688
            }
689
@@ 730-732 (lines=3) @@
727
                $attach_data = wp_generate_attachment_metadata($attach_id, $new_path);
728
                wp_update_attachment_metadata($attach_id, $attach_data);
729
730
                if (!get_tax_meta($last_catid['term_id'], 'ct_cat_icon', false, 'gd_place')) {
731
                    update_tax_meta($last_catid['term_id'], 'ct_cat_icon', array('id' => $attach_id, 'src' => $new_url), 'gd_place');
732
                }
733
            }
734
        }
735