MDL-9618 Form remove option logic is incorrect - patch by Mark Nielsen; merged from MOODLE_18_STABLE

This commit is contained in:
skodak
2007-05-16 20:32:01 +00:00
parent 68d0c80c21
commit ec74e82d5c
+1 -1
View File
@@ -86,7 +86,7 @@ class MoodleQuickForm_select extends HTML_QuickForm_select{
function removeOption($value)
{
$key=array_search($value, $this->_values);
if ($key!==FALSE || $key!==null) {
if ($key!==FALSE and $key!==null) {
unset($this->_values[$key]);
}
foreach ($this->_options as $key=>$option){