Merge pull request #2808 from warrenlee/coupon-bug-fix

coupon message set invalid if null
This commit is contained in:
Mike Jolley 2013-03-25 07:23:12 -07:00
commit 2a7500f64f
1 changed files with 2 additions and 1 deletions

View File

@ -376,7 +376,8 @@ class WC_Coupon {
if ( $valid ) {
return true;
} else {
$error_code = self::E_WC_COUPON_INVALID_FILTERED;
if ( is_null( $error_code ) )
$error_code = self::E_WC_COUPON_INVALID_FILTERED;
}
} else {