mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
chore: Avoid handlers and database initialization when not yet installed
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author nuxsmin
|
||||
* @link https://syspass.org
|
||||
* @copyright 2012-2021, Rubén Domínguez nuxsmin@$syspass.org
|
||||
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
|
||||
*
|
||||
* This file is part of sysPass.
|
||||
*
|
||||
@@ -64,11 +64,11 @@ abstract class ModuleBase
|
||||
*/
|
||||
protected function initEventHandlers(bool $partialInit = false): void
|
||||
{
|
||||
if (DEBUG || $this->configData->isDebug()) {
|
||||
if (DEBUG || $this->configData->isDebug() || !$this->configData->isInstalled()) {
|
||||
$this->eventDispatcher->attach($this->providersHelper->getFileLogHandler());
|
||||
}
|
||||
|
||||
if ($partialInit) {
|
||||
if ($partialInit || !$this->configData->isInstalled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user