mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix recursion when initializing memberModel
This commit is contained in:
parent
9a87376e35
commit
c0007767ad
1 changed files with 4 additions and 1 deletions
|
|
@ -37,7 +37,10 @@ class ModuleObject extends BaseObject
|
|||
*/
|
||||
function __construct($error = 0, $message = 'success')
|
||||
{
|
||||
$this->user = Rhymix\Framework\Session::getMemberInfo() ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
if(strcasecmp(get_class($this), 'memberModel') !== 0)
|
||||
{
|
||||
$this->user = Rhymix\Framework\Session::getMemberInfo() ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
}
|
||||
parent::__construct($error, $message);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue