mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix PHP warnings due to unitiated variables #1866 thanks to @Erictoby
This commit is contained in:
parent
70cfe24cdd
commit
7e82d37cfa
11 changed files with 54 additions and 51 deletions
|
|
@ -347,7 +347,7 @@ class ModuleObject extends BaseObject
|
|||
}
|
||||
|
||||
// Get permission types(guest, member, manager, root) of the currently requested action
|
||||
$permission = $this->xml_info->action->{$this->act}->permission->target ?: $this->xml_info->permission->{$this->act};
|
||||
$permission = $this->xml_info->action->{$this->act}->permission->target ?: ($this->xml_info->permission->{$this->act} ?? null);
|
||||
|
||||
// If admin action, set default permission
|
||||
if(empty($permission) && stripos($this->act, 'admin') !== false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue