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