do not try to render Seminarybar if no Seminary is present
This commit is contained in:
parent
d1a7fb2761
commit
f10e10e6a7
2 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue