optimize module loaded

This commit is contained in:
Dennis Eichhorn 2020-07-23 20:50:19 +02:00
parent a91ee19ff8
commit 013ce912f9

View File

@ -700,7 +700,7 @@ final class ModuleManager
public function get(string $module) : ModuleAbstract
{
$name = $this->generateModuleName($module);
if (!isset($this->running[$name])) {
if (!array_key_exists($name, $this->running)) {
$this->initModule($module);
}