mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
Fix error when trying to instantiate class that isn't a ModuleObject
This commit is contained in:
parent
80c5c12059
commit
114755d13a
1 changed files with 1 additions and 1 deletions
|
|
@ -1294,7 +1294,7 @@ class ModuleHandler extends Handler
|
||||||
}
|
}
|
||||||
|
|
||||||
$class_name = $module . self::$_kinds[$kind] . self::$_types[$type];
|
$class_name = $module . self::$_kinds[$kind] . self::$_types[$type];
|
||||||
if (class_exists($class_name))
|
if (class_exists($class_name) && is_subclass_of($class_name, 'ModuleObject'))
|
||||||
{
|
{
|
||||||
return $class_name::getInstance($module);
|
return $class_name::getInstance($module);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue