Use !== instead of != in class-wc-ajax.php

Use !== here: if ( wc_tax_enabled() && $is_vat_exempt !== 'yes' ) {
This commit is contained in:
Peter 2016-02-18 20:29:10 +01:00
parent 516602b4e3
commit 0cc33c8186
1 changed files with 1 additions and 1 deletions

View File

@ -1524,7 +1524,7 @@ class WC_AJAX {
$is_vat_exempt = get_post_meta( $order_id, '_is_vat_exempt', true );
// Tax is calculated only if tax is enabled and order is not vat exempted
if ( wc_tax_enabled() && $is_vat_exempt != 'yes' ) {
if ( wc_tax_enabled() && $is_vat_exempt !== 'yes' ) {
// Get items and fees taxes
if ( isset( $items['order_item_id'] ) ) {