Small codestyle fix to add_discount method.

This commit is contained in:
Barry Kooij 2014-10-28 11:51:33 +01:00
parent 1d4800ee98
commit 6312683eec
1 changed files with 2 additions and 1 deletions

View File

@ -1575,8 +1575,9 @@ class WC_Cart {
*/
public function add_discount( $coupon_code ) {
// Coupons are globally disabled
if ( ! $this->coupons_enabled() )
if ( ! $this->coupons_enabled() ) {
return false;
}
// Sanitize coupon code
$coupon_code = apply_filters( 'woocommerce_coupon_code', $coupon_code );