moon ledger stuff

This commit is contained in:
2020-04-25 04:53:04 -05:00
parent 48042df9d5
commit de09e811c6

View File

@@ -66,7 +66,7 @@ class MoonLedgerController extends Controller
//Try to get the mining observers for the corporation from esi //Try to get the mining observers for the corporation from esi
try { try {
$response = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [ $responses = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
'corporation_id' => $character->corporation_id, 'corporation_id' => $character->corporation_id,
]); ]);
} catch(RequestFailedException $e) { } catch(RequestFailedException $e) {
@@ -75,7 +75,7 @@ class MoonLedgerController extends Controller
} }
//For each mining observer, let's build the array of data to show on the page //For each mining observer, let's build the array of data to show on the page
foreach($response as $response) { foreach($responses as $response) {
//Try to get the structure information from esi //Try to get the structure information from esi
try { try {
$structureInfo = $esi->invoke('get', '/universe/structures/{structure_id}/', [ $structureInfo = $esi->invoke('get', '/universe/structures/{structure_id}/', [