This commit is contained in:
2019-12-01 04:13:42 -06:00
parent eef64b414e
commit ddcd082fee
2 changed files with 9 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ class BlacklistController extends Controller
//Get the character id from the universe end point
$charId = $lookup->CharacterNameToId($request->name);
if($charId != -1) {
if($charId != null) {
//Insert the character into the blacklist table
BlacklistUser::insert([
'character_id' => $charId,
@@ -70,7 +70,7 @@ class BlacklistController extends Controller
]);
} else {
//Redirect back to the view
return redirect('/blacklist/display/add')->with('error', $request->name . ' has been biomassed.');
return redirect('/blacklist/display/add')->with('error', $request->name . ' could not be added.');
}
} else {
//Return the view