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:
wilgert 2014-07-21 15:59:20 +02:00
parent 6ccd084e52
commit 0b032ab469
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class WC_Coupon {
$this->id = absint( $coupon_data['id'] );
$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->individual_use = esc_html( $coupon_data['individual_use'] );
$this->product_ids = is_array( $coupon_data['product_ids'] ) ? $coupon_data['product_ids'] : array();