diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index e8192530c1799..505d5c52696c5 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -292,11 +292,17 @@ public function getValueMixed( string $default = '', ?bool $lazy = false ): string { + try { + $lazy = ($lazy === null) ? $this->isLazy($app, $key) : $lazy; + } catch (AppConfigUnknownKeyException $e) { + return $default; + } + return $this->getTypedValue( $app, $key, $default, - ($lazy === null) ? $this->isLazy($app, $key) : $lazy, + $lazy, self::VALUE_MIXED ); }