mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Ensure tmpData exists
Otherwise you might get illegal string offset
This commit is contained in:
parent
d28a1b5cfc
commit
2e1c70b56c
@ -1454,7 +1454,7 @@ class Form extends ViewableData implements HasRequestHandler
|
||||
$tmpData = &$data[$name];
|
||||
// drill down into the data array looking for the corresponding value
|
||||
foreach ($keys as $arrayKey) {
|
||||
if ($arrayKey !== '') {
|
||||
if ($tmpData && $arrayKey !== '') {
|
||||
$tmpData = &$tmpData[$arrayKey];
|
||||
} else {
|
||||
//empty square brackets means new array
|
||||
|
Loading…
Reference in New Issue
Block a user