mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Populate an empty SessionHelper object if not logged in
This commit is contained in:
parent
11883fb965
commit
03866c7777
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue