From f0f2835708b906858edb568ed309191f07e95030 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Mon, 4 Jul 2022 09:50:11 +0200 Subject: [PATCH] Module: Don't pass null as param to `class_exists()` --- library/Icinga/Application/Modules/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 97650659f..00a33838e 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -1036,7 +1036,7 @@ class Module public function providesSetupWizard() { $this->launchConfigScript(); - if (class_exists($this->setupWizard)) { + if ($this->setupWizard && class_exists($this->setupWizard)) { $wizard = new $this->setupWizard; return $wizard instanceof SetupWizard; }