BUGFIX added isset option to if statement to stop errors

This commit is contained in:
Michael Andrewartha 2009-03-09 04:52:59 +00:00
parent daac87acee
commit 0d60f6326a

View File

@ -43,7 +43,7 @@ class EditableDropdown extends EditableFormField {
continue;
}
if(isset($data[$option->ID])) {
if(isset($option) && isset($data[$option->ID])) {
$option->setField('Default', isset($data['Default']) ? ($option->ID == $data['Default']) : false);
$option->populateFromPostData( $data[$option->ID] );
}