diff --git a/Module/ModuleManager.php b/Module/ModuleManager.php index 105f91a24..93ceff9b5 100644 --- a/Module/ModuleManager.php +++ b/Module/ModuleManager.php @@ -220,10 +220,10 @@ class ModuleManager if ($this->active === null) { switch ($this->app->dbPool->get('core')->getType()) { case DatabaseType::MYSQL: - $sth = $this->app->dbPool->get('core')->con->prepare('SELECT `module_path` FROM `' . $this->app->dbPool->get('core')->prefix . 'module` WHERE `module_active` = 1'); - $sth->execute(); - $this->active = $sth->fetchAll(\PDO::FETCH_COLUMN); - break; + $sth = $this->app->dbPool->get('core')->con->prepare('SELECT `module_path` FROM `' . $this->app->dbPool->get('core')->prefix . 'module` WHERE `module_active` = 1'); + $sth->execute(); + $this->active = $sth->fetchAll(\PDO::FETCH_COLUMN); + break; } }