mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 15:27:16 +02:00
Fixed error in loadDirectoryConfig() if configuration hasn't been saved [#3409]
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user