From 0d60f6326a9faa4aba0f2ad2b90a4d665aca9535 Mon Sep 17 00:00:00 2001 From: Michael Andrewartha Date: Mon, 9 Mar 2009 04:52:59 +0000 Subject: [PATCH] BUGFIX added isset option to if statement to stop errors --- code/editor/EditableDropdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/editor/EditableDropdown.php b/code/editor/EditableDropdown.php index c0d3f67..ff0a182 100755 --- a/code/editor/EditableDropdown.php +++ b/code/editor/EditableDropdown.php @@ -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] ); }