From 7b551b45b2baee11e23bf94ae39d5a389bd40fa4 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 16 Feb 2019 00:00:04 -0600 Subject: [PATCH] moons admin controller --- app/Library/Lookups/LookupHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Library/Lookups/LookupHelper.php b/app/Library/Lookups/LookupHelper.php index 34555f62c..cf3f44ec6 100644 --- a/app/Library/Lookups/LookupHelper.php +++ b/app/Library/Lookups/LookupHelper.php @@ -87,7 +87,7 @@ class LookupHelper { //hit the ESI API all the time public function LookupCorporation($corpId) { //Check for the character in the user_to_corporation table - $found = CorporationToAlliance::where('corporation_id', $charId)->get(['alliance_id']); + $found = CorporationToAlliance::where('corporation_id', $corpId)->get(['alliance_id']); //If we don't find the character in the table, then we retrieve from ESI //and add the character to the table