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