updated to updating moons

This commit is contained in:
2019-05-01 17:47:50 -05:00
parent 41d5a670ba
commit 687c584f5f

View File

@@ -54,7 +54,11 @@ class MoonsAdminController extends Controller
]); ]);
//Take the contact name and create a character id from it //Take the contact name and create a character id from it
$contact = $lookup->CharacterNameToId($request->contact); if($request->contact == 'None') {
$contact = 'None';
} else {
$contact = $lookup->CharacterNameToId($request->contact);
}
//Let's find the corporation and alliance information to ascertain whether they are in Warped Intentions or another Legacy Alliance //Let's find the corporation and alliance information to ascertain whether they are in Warped Intentions or another Legacy Alliance
$corpId = $lookup->LookupCharacter($contact); $corpId = $lookup->LookupCharacter($contact);
$allianceId = $lookup->LookupCorporation($corpId); $allianceId = $lookup->LookupCorporation($corpId);