Include a isset before using a variable that might not be there

This commit is contained in:
Gustavo Bordoni 2014-08-02 21:32:18 -03:00
parent 72fff668d4
commit fbf4ffd39b
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
</div> </div>
</td> </td>
<?php if ( ! $legacy_order && 'yes' == get_option( 'woocommerce_calc_taxes' ) ) : for ( $i = 0; $i < count( $order_taxes ); $i++ ) : ?> <?php if ( ( ! isset( $legacy_order ) || ! $legacy_order ) && 'yes' == get_option( 'woocommerce_calc_taxes' ) ) : for ( $i = 0; $i < count( $order_taxes ); $i++ ) : ?>
<td class="line_tax" width="1%"></td> <td class="line_tax" width="1%"></td>