Fix undefined variables in several module config templates

This commit is contained in:
Kijin Sung 2023-11-09 01:37:38 +09:00
parent d54eb4f3d5
commit 8176bdb845
12 changed files with 38 additions and 31 deletions

View file

@ -833,7 +833,7 @@ class ModuleObject extends BaseObject
}
// execute api methods of the module if view action is and result is XMLRPC or JSON
if($this->module_info->module_type == 'view' || $this->module_info->module_type == 'mobile')
if(isset($this->module_info->module_type) && in_array($this->module_info->module_type, ['view', 'mobile']))
{
if(Context::getResponseMethod() == 'XMLRPC' || Context::getResponseMethod() == 'JSON')
{