From 32c7118cf88a699245a1fdbe00d0f583073c97b4 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 14 Aug 2017 20:58:13 +0100 Subject: [PATCH] price changed to display N/A when the value is $0.00 --- src/Controller/MainController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index 52af76f..c585fd4 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -77,7 +77,7 @@ class MainController extends AppController { } } - $lbcUsdPrice = isset($priceInfo->price) ? '$' . $priceInfo->price : 'N/A'; + $lbcUsdPrice = (isset($priceInfo->price) && ($priceInfo->price > 0)) ? '$' . $priceInfo->price : 'N/A'; return $lbcUsdPrice; }