coupon message set invalid if null

This commit is contained in:
Warren Lee 2013-03-25 11:50:17 +08:00
parent 414315fde0
commit 4a77204aff
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 {