do not try to render Seminarybar if no Seminary is present

This commit is contained in:
coderkun 2014-05-13 13:44:14 +02:00
commit f10e10e6a7
2 changed files with 9 additions and 3 deletions

View file

@ -35,12 +35,14 @@
*/
public function index()
{
if(is_null(SeminaryController::$seminary)) {
return;
}
// Do not render at first
$this->set('render', false);
// Get Seminary
$seminary = SeminaryController::$seminary;
if(is_null($seminary)) {
return;
}
// Get Character
$character = SeminaryController::$character;
@ -79,6 +81,8 @@
$this->set('lastQuest', $lastQuest);
$this->set('lastAchievement', $lastAchievement);
$this->set('characterGroups', $characterGroups);
// Render now
$this->set('render', true);
}
}