mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix illegal string offset in spyc component
This commit is contained in:
parent
cca7e9697c
commit
82f62c8184
3
thirdparty/spyc/spyc.php
vendored
3
thirdparty/spyc/spyc.php
vendored
@ -769,7 +769,8 @@ class Spyc {
|
||||
|
||||
$_arr = array_merge ($_arr, $value);
|
||||
} else if ($key || $key === '') {
|
||||
$_arr[$key] = $value;
|
||||
if (!is_array ($_arr)) { $_arr = array ($key=>$value); }
|
||||
else { $_arr[$key] = $value; }
|
||||
} else {
|
||||
if (!is_array ($_arr)) { $_arr = array ($value); $key = 0; }
|
||||
else { $_arr[] = $value; end ($_arr); $key = key ($_arr); }
|
||||
|
Loading…
Reference in New Issue
Block a user