mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #1521 error in PHP 8.0 if API class doesn't exist
This commit is contained in:
parent
82e1625d0c
commit
70d88bc026
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ class ModuleObject extends BaseObject
|
|||
if(Context::getResponseMethod() == 'XMLRPC' || Context::getResponseMethod() == 'JSON')
|
||||
{
|
||||
$oAPI = getAPI($this->module_info->module);
|
||||
if(method_exists($oAPI, $this->act))
|
||||
if($oAPI instanceof ModuleObject && method_exists($oAPI, $this->act))
|
||||
{
|
||||
$oAPI->{$this->act}($this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue