Merge pull request #5869 from wilgert/patch-1

Update class-wc-coupon.php
This commit is contained in:
Mike Jolley 2014-07-30 17:06:36 +01:00
commit a5967ce4f9
1 changed files with 2 additions and 1 deletions

View File

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