Update class-wc-coupon.php
add middle statement to ternary operator has ommitting this is only supported since PHP 5.3 and WooCommerce requires >5.2.4
This commit is contained in:
parent
6ccd084e52
commit
0b032ab469
|
@ -111,7 +111,7 @@ class WC_Coupon {
|
||||||
|
|
||||||
$this->id = absint( $coupon_data['id'] );
|
$this->id = absint( $coupon_data['id'] );
|
||||||
$this->type = esc_html( $coupon_data['type'] );
|
$this->type = esc_html( $coupon_data['type'] );
|
||||||
$this->amount = esc_html( ($coupon_data['amount']?:$coupon_data['coupon_amount']) ) ;
|
$this->amount = esc_html( ($coupon_data['amount']?$coupon_data['amount']:$coupon_data['coupon_amount']) ) ;
|
||||||
$this->coupon_amount = $this->amount;
|
$this->coupon_amount = $this->amount;
|
||||||
$this->individual_use = esc_html( $coupon_data['individual_use'] );
|
$this->individual_use = esc_html( $coupon_data['individual_use'] );
|
||||||
$this->product_ids = is_array( $coupon_data['product_ids'] ) ? $coupon_data['product_ids'] : array();
|
$this->product_ids = is_array( $coupon_data['product_ids'] ) ? $coupon_data['product_ids'] : array();
|
||||||
|
|
Loading…
Reference in New Issue