Fixed error in loadDirectoryConfig() if configuration hasn't been saved [#3409]

This commit is contained in:
Matias Griese
2021-07-22 16:59:42 +03:00
parent fdcf7026d2
commit 7b1a188cfe
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
1. [](#bugfix)
* Fixed `Warning: Undefined array key "SERVER_SOFTWARE" in index.php` [#3408](https://github.com/getgrav/grav/issues/3408)
* Fixed error in `loadDirectoryConfig()` if configuration hasn't been saved [#3409](https://github.com/getgrav/grav/issues/3409)
# v1.7.18
## 07/19/2021

View File

@@ -241,7 +241,7 @@ class FlexDirectory implements FlexDirectoryInterface
if (str_starts_with($uri, 'config://')) {
$path = strtr(substr($uri, 9, -5), '/', '.');
return $grav['config']->get($path);
return (array)$grav['config']->get($path);
}
// Load the configuration file.