Fixed Undefined property: stdClass::$image in 1.8.2 [#1454]

This commit is contained in:
Matias Griese
2018-05-31 18:41:18 +03:00
parent 02a93a514c
commit c9e9fd4a0c
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
# v1.8.3
## mm/dd/2018
1. [](#bugfix)
* Fixed Undefined property: stdClass::$image in 1.8.2 [#1454](https://github.com/getgrav/grav-plugin-admin/issues/1454)
# v1.8.2
## 05/24/2018

View File

@@ -719,7 +719,7 @@ class AdminBaseController
} else {
$new_data = $files;
}
if ($obj->header()->{$init_key}) {
if (isset($obj->header()->{$init_key})) {
$obj->modifyHeader($init_key,
array_replace_recursive([], $obj->header()->{$init_key}, $new_data));
} else {