Populate an empty SessionHelper object if not logged in

This commit is contained in:
Kijin Sung 2017-02-10 21:26:38 +09:00
parent 11883fb965
commit 03866c7777
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ class TemplateHandler
{
$this->config = new stdClass;
$this->handler_mtime = filemtime(__FILE__);
$this->user = Context::get('logged_info');
$this->user = Context::get('logged_info') ?: new Rhymix\Framework\Helpers\SessionHelper;
}
/**