From 6be8c1fdc43dcb444beecdfbb08e18ca35b9c716 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 21 Sep 2023 14:51:29 +0000 Subject: [PATCH] fix test bugs --- Module/ModuleAbstract.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ public function __construct(ApplicationAbstract $app = null) $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; } }