mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: fixed undefined array notice on the edge case of a request failing
This commit is contained in:
parent
7d39887df3
commit
c62b555b9e
@ -100,7 +100,7 @@ class FieldEditor extends FormField {
|
||||
$missingFields[$existingField->ID] = $existingField;
|
||||
}
|
||||
|
||||
if($_REQUEST[$name]) {
|
||||
if(isset($_REQUEST[$name]) && is_array($_REQUEST[$name])) {
|
||||
foreach($_REQUEST[$name] as $newEditableID => $newEditableData) {
|
||||
if(!is_numeric($newEditableID)) continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user