mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
prevent missing config from causing stats error
small advanced stats fixes
This commit is contained in:
@ -16,7 +16,8 @@
|
||||
const string meleeKey = "MOD_MELEE";
|
||||
|
||||
var suicideKeys = new[] {"MOD_SUICIDE", "MOD_FALLING"};
|
||||
var config = (GameStringConfiguration) ViewBag.Config;
|
||||
// if they've not copied default settings config this could be null
|
||||
var config = (GameStringConfiguration) ViewBag.Config ?? new GameStringConfiguration();
|
||||
|
||||
var headerClass = Model.Level == EFClient.Permission.Banned ? "bg-danger" : "bg-primary";
|
||||
var textClass = Model.Level == EFClient.Permission.Banned ? "text-danger" : "text-primary";
|
||||
|
Reference in New Issue
Block a user