From 4d3b20e83f68a7e71b728a6386d20a2c216e6185 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 25 Oct 2018 22:54:03 -0500 Subject: [PATCH] undefined index error --- 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 2d4be114d..1781d8423 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -194,7 +194,7 @@ class MoonCalc { //Get the item composition $composition = DB::select('SELECT * FROM ItemComposition WHERE ItemId = ?', [$item->ItemId]); //Calculate the Batch Price - $batchPrice = ( ($composition['Tritanium'] * $tritaniumPrice) + + $batchPrice = ( ($composition->Tritanium * $tritaniumPrice) + ($composition['Pyerite'] * $pyeritePrice) + ($composition['Mexallon'] * $mexallonPrice) + ($composition['Isogen'] * $isogenPrice) +