check logged Character for NULL

This commit is contained in:
coderkun 2014-04-14 15:35:05 +02:00
commit 6833d48544
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,9 @@
// Get Character
$character = IntermediateController::$character;
if(is_null($character)) {
return;
}
$character['xplevel'] = $this->Characters->getXPLevelOfCharacters($character['id']);
$character['rank'] = $this->Characters->getXPRank($seminary['id'], $character['xps']);