Check payment title exists before output.

This commit is contained in:
Mike Jolley 2015-03-02 10:03:27 +00:00
parent b8e01fdfdd
commit d98569327d
1 changed files with 1 additions and 1 deletions

View File

@ -1779,7 +1779,7 @@ abstract class WC_Abstract_Order {
}
}
if ( $this->get_total() > 0 ) {
if ( $this->get_total() > 0 && $this->payment_method_title ) {
$total_rows['payment_method'] = array(
'label' => __( 'Payment Method:', 'woocommerce' ),
'value' => $this->payment_method_title