MDL-9618 Form remove option logic is incorrect - patch by Mark Nielsen

This commit is contained in:
skodak
2007-05-16 20:31:20 +00:00
parent 6e04be55d7
commit ddb5da6113
+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){