From 837b913ee3db3752819ec31a6bf8cc651f16d1d5 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sun, 16 Feb 2020 17:27:02 +0100 Subject: [PATCH] s/this/self --- lib/SimpleSAML/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php index d5dd1b2c5..8183a369f 100644 --- a/lib/SimpleSAML/Module.php +++ b/lib/SimpleSAML/Module.php @@ -119,7 +119,7 @@ class Module public static function isModuleEnabled(string $module): bool { $config = Configuration::getOptionalConfig(); - return self::isModuleEnabledWithConf($module, $config->getArray('module.enable', $this->core_modules)); + return self::isModuleEnabledWithConf($module, $config->getArray('module.enable', self::$core_modules)); } @@ -352,7 +352,7 @@ class Module throw new \Exception("Invalid module.enable value for the '$module' module."); } - $core_module = array_key_exists($module, $this->core_modules) ? true : false; + $core_module = array_key_exists($module, self::$core_modules) ? true : false; self::$module_info[$module]['enabled'] = $core_module ? true : false; return $core_module ? true : false; -- GitLab