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