Code Duplication    Length = 7-7 lines in 2 locations

includes/general.php 2 locations

@@ 816-822 (lines=7) @@
813
				$params[ 'orderby' ] = $tags[ 'orderby' ];
814
			}
815
816
			if ( 0 < strlen( $tags[ 'where' ] ) ) {
817
				$params[ 'where' ] = $tags[ 'where' ];
818
819
				if ( defined( 'PODS_SHORTCODE_ALLOW_EVALUATE_TAGS' ) && PODS_SHORTCODE_ALLOW_EVALUATE_TAGS ) {
820
					$params[ 'where' ] = pods_evaluate_tags( $params[ 'where' ] );
821
				}
822
			}
823
824
			if ( 0 < strlen( $tags[ 'having' ] ) ) {
825
				$params[ 'having' ] = $tags[ 'having' ];
@@ 824-830 (lines=7) @@
821
				}
822
			}
823
824
			if ( 0 < strlen( $tags[ 'having' ] ) ) {
825
				$params[ 'having' ] = $tags[ 'having' ];
826
827
				if ( defined( 'PODS_SHORTCODE_ALLOW_EVALUATE_TAGS' ) && PODS_SHORTCODE_ALLOW_EVALUATE_TAGS ) {
828
					$params[ 'having' ] = pods_evaluate_tags( $id );
829
				}
830
			}
831
832
			if ( 0 < strlen( $tags[ 'groupby' ] ) ) {
833
				$params[ 'groupby' ] = $tags[ 'groupby' ];