MDL-9618 Form remove option logic is incorrect - patch by Mark Nielsen; merged from MOODLE_18_STABLE
This commit is contained in:
+1
-1
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user