From d98569327dbb3b4ab542fd04a4707517a726c919 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 2 Mar 2015 10:03:27 +0000 Subject: [PATCH] Check payment title exists before output. --- includes/abstracts/abstract-wc-order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 9e4809dcd62..b870f919932 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -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