mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fix test bugs
This commit is contained in:
parent
d5b0b73f2a
commit
6be8c1fdc4
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user