Code Duplication    Length = 4-4 lines in 2 locations

geodirectory-functions/shortcode_functions.php 1 location

@@ 613-616 (lines=4) @@
610
        $query_args['show_special_only'] = 1;
611
    }
612
613
    if (!empty($args['with_pics_only'])) {
614
        $query_args['with_pics_only'] = 0;
615
        $query_args['featured_image_only'] = 1;
616
    }
617
618
    if (!empty($args['with_videos_only'])) {
619
        $query_args['with_videos_only'] = 1;

geodirectory-functions/general_functions.php 1 location

@@ 3688-3691 (lines=4) @@
3685
		$query_args['show_special_only'] = 1;
3686
	}
3687
3688
	if ( ! empty( $instance['with_pics_only'] ) ) {
3689
		$query_args['with_pics_only']      = 0;
3690
		$query_args['featured_image_only'] = 1;
3691
	}
3692
3693
	if ( ! empty( $instance['with_videos_only'] ) ) {
3694
		$query_args['with_videos_only'] = 1;