mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix fatal error if logged_info is not an object at this stage
This commit is contained in:
parent
2b41d73c96
commit
22abeb7a88
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class ModuleHandler extends Handler
|
|||
case 'OK':
|
||||
break;
|
||||
case 'ALLOW ADMIN ONLY':
|
||||
if(!Context::get('logged_info')->isAdmin())
|
||||
if(!Context::get('logged_info') || !Context::get('logged_info')->isAdmin())
|
||||
{
|
||||
$this->error = 'msg_security_violation';
|
||||
$this->error_detail = $oContext->security_check_detail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue