From c9414e4968c84ed306fd89a797e89c3ae9d434fa Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 23:48:31 -0500 Subject: [PATCH] troubleshooting moon calc --- app/Library/MoonCalc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 2cf612ef5..bb2011d81 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -142,7 +142,7 @@ class MoonCalc { //Get the configuration from the config table $config = DB::table('Config')->first(); //Calculate refine rate - $refineRate = $config[0]->RefineRate / 100.00; + $refineRate = $config->RefineRate / 100.00; dd($refineRate); //Calculate the current time $time = time();