From b7b49441f690a4d1c5487f5d6475a1829b253e04 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 1 Nov 2022 09:30:22 +1100 Subject: [PATCH] Fixes for non existent systemhealth setting --- app/Utils/SystemHealth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index dc251a4ca3e7..88f64e12c535 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -90,6 +90,9 @@ class SystemHealth private static function checkCurrencySanity() { + if(!self::simpleDbCheck()) + return true; + if(strlen(config('ninja.currency_converter_api_key')) == 0){ $cs = DB::table('clients')