mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Set $this->user only once
This commit is contained in:
parent
564563f56c
commit
fda343afd1
2 changed files with 3 additions and 7 deletions
|
|
@ -47,11 +47,6 @@ class ModuleObject extends BaseObject
|
|||
*/
|
||||
public function __construct($error = 0, $message = 'success')
|
||||
{
|
||||
$this->user = Context::get('logged_info') ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
if(!($this->user instanceof Rhymix\Framework\Helpers\SessionHelper))
|
||||
{
|
||||
$this->user = Rhymix\Framework\Session::getMemberInfo();
|
||||
}
|
||||
parent::__construct($error, $message);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue