diff --git a/Module/ModuleAbstract.php b/Module/ModuleAbstract.php index 61e189d73..fd53ccb0c 100755 --- a/Module/ModuleAbstract.php +++ b/Module/ModuleAbstract.php @@ -125,8 +125,8 @@ abstract class ModuleAbstract $this->app = $app ?? new class() extends ApplicationAbstract {}; if (self::$auditor === null && static::ID !== 1006200000) { - self::$auditor = $this->app?->moduleManager->get('Auditor', 'Api'); - self::$auditor = static::$auditor::ID === 0 ? null : self::$auditor; + self::$auditor = $this->app->moduleManager?->get('Auditor', 'Api'); + self::$auditor = self::$auditor === null || self::$auditor::ID === 0 ? null : self::$auditor; } }