Check meta exists Closes #2183.

This commit is contained in:
Mike Jolley 2013-01-10 14:19:27 +00:00
parent 235cda133a
commit d3e5877953
1 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ function woocommerce_order_totals_meta_box( $post ) {
<select name="_shipping_method" id="_shipping_method" class="first">
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
<?php
$chosen_method = $data['_shipping_method'][0];
$chosen_method = ! empty( $data['_shipping_method'][0] ) ? $data['_shipping_method'][0] : '';
$found_method = false;
if ( $woocommerce->shipping() ) {
@ -649,7 +649,7 @@ function woocommerce_order_totals_meta_box( $post ) {
<select name="_payment_method" id="_payment_method" class="first">
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
<?php
$chosen_method = $data['_payment_method'][0];
$chosen_method = ! empty( $data['_payment_method'][0] ) ? $data['_payment_method'][0] : '';
$found_method = false;
if ( $woocommerce->payment_gateways() ) {