From 437e041d3dede005363ea550d8c85b54628c4150 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Thu, 16 Oct 2014 08:56:28 +0200 Subject: [PATCH] Fix potential bug Added `default` to prevent notices and reordered the code. --- includes/admin/reports/class-wc-admin-report.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/admin/reports/class-wc-admin-report.php b/includes/admin/reports/class-wc-admin-report.php index 9264331948e..e9978574159 100644 --- a/includes/admin/reports/class-wc-admin-report.php +++ b/includes/admin/reports/class-wc-admin-report.php @@ -540,14 +540,15 @@ class WC_Admin_Report { */ public function get_currency_tooltip() { switch( get_option( 'woocommerce_currency_pos' ) ) { - case 'left': - $currency_tooltip = 'prepend_tooltip: "' . get_woocommerce_currency_symbol() . '"'; break; - case 'left_space': - $currency_tooltip = 'prepend_tooltip: "' . get_woocommerce_currency_symbol() . ' "'; break; case 'right': $currency_tooltip = 'append_tooltip: "' . get_woocommerce_currency_symbol() . '"'; break; case 'right_space': $currency_tooltip = 'append_tooltip: " ' . get_woocommerce_currency_symbol() . '"'; break; + case 'left': + $currency_tooltip = 'prepend_tooltip: "' . get_woocommerce_currency_symbol() . '"'; break; + case 'left_space': + default: + $currency_tooltip = 'prepend_tooltip: "' . get_woocommerce_currency_symbol() . ' "'; break; } return $currency_tooltip;