Skip to content

Commit

Permalink
Update monthly.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jmau111 authored Jul 20, 2018
1 parent 17ea0d2 commit 222794b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/monthly.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function render( $params ) {
function filter_posts( $params ) {
global $wpdb;

$output = [];
$output = array();
$facet = $params['facet'];
$selected_values = $params['selected_values'];

Expand All @@ -95,7 +95,7 @@ function filter_posts( $params ) {
$dates = explode( '-', reset( $selected_values ) );

if ( count( $dates ) < 2 ) {
$dates = [ date( 'Y' ), date( 'm' ) ];
$dates = array( date( 'Y' ), date( 'm' ) );
}

$sql = $wpdb->prepare( "SELECT DISTINCT post_id
Expand Down

0 comments on commit 222794b

Please sign in to comment.