undefined index error

This commit is contained in:
2018-10-25 22:54:03 -05:00
parent 815724955b
commit 4d3b20e83f
+1 -1
View File
@@ -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) +