Skip to content

Commit

Permalink
Fixed parameter name from previous copy paste error.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfabian committed Feb 10, 2019
1 parent 45fe911 commit 5576c37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function get_time_period_sql_params( $query_args, $table_name ) {
);

if ( $query_args['before'] ) {
$datetime_str = $query_args['after']->format( WC_Admin_Reports_Interval::$sql_datetime_format );
$datetime_str = $query_args['before']->format( WC_Admin_Reports_Interval::$sql_datetime_format );
$sql_query['where_time_clause'] .= " AND {$table_name}.timestamp <= '$datetime_str'";

}
Expand Down

0 comments on commit 5576c37

Please sign in to comment.