Skip to content

Commit

Permalink
Fix misplaced parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepearson committed Aug 19, 2020
1 parent 6f13085 commit 9d02242
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
*** Cron Helper For WooCommerce Bookings Changelog ***

2020-08-19 - version 1.0.1
* Fix misplaced parenthesis.

2020-08-19 - version 1.0.0
* Initial release.
8 changes: 4 additions & 4 deletions cron-helper-for-woocommerce-bookings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author: Jesse Pearson
* Author URI: https://jessepearson.net
* Text Domain: cron-helper-for-wcb
* Version: 1.0.0
* Version: 1.0.1
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -19,7 +19,7 @@
* Main class.
*
* @since 1.0.0
* @version 1.0.0
* @version 1.0.1
*/
class Cron_Helper_For_WCB {

Expand Down Expand Up @@ -101,7 +101,7 @@ public function remove_expired_in_cart() {
* This will set Paid and Confirmed bookings to Completed if their time has passed.
*
* @since 1.0.0
* @version 1.0.0
* @version 1.0.1
*/
public function maybe_complete_bookings() {
// If Bookings isn't active, exit.
Expand All @@ -115,7 +115,7 @@ public function maybe_complete_bookings() {
'date_before' => current_time( 'timestamp' ),
] );

if ( count( $booking_ids > 0 ) ) {
if ( count( $booking_ids ) > 0 ) {
// Get the Cron manager object and mark the bookings as complete.
$cron_manager = new WC_Booking_Cron_Manager();
foreach( $booking_ids as $id ) {
Expand Down

0 comments on commit 9d02242

Please sign in to comment.