MINOR: fixed undefined array notice on the edge case of a request failing

This commit is contained in:
Will Rossiter 2009-05-28 08:45:25 +00:00
parent 7d39887df3
commit c62b555b9e

View File

@ -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;