Skip to content

Commit

Permalink
Fix a PHP bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Dec 19, 2023
1 parent 317050e commit ae9f070
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client-mu-plugins/goodbids/blocks/bid-now/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ class BidNow {
* @param array $block
*/
public function __construct( array $block ) {
$this->block = $block;
$this->auction_id = goodbids()->auctions->get_auction_id();
$this->bid_product_id = goodbids()->auctions->get_bid_product_id( $this->auction_id );
$this->block = $block;
$this->auction_id = goodbids()->auctions->get_auction_id();

if ( $this->auction_id ) {
$this->bid_product_id = goodbids()->auctions->get_bid_product_id( $this->auction_id );
}
}

/**
Expand Down

0 comments on commit ae9f070

Please sign in to comment.