Skip to content

Commit

Permalink
Merge branch 'wip-mdl-35489-m23' of git://github.com/rajeshtaneja/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_23_STABLE
  • Loading branch information
danpoltawski committed Oct 30, 2012
2 parents aa7d8ef + 4e15f69 commit 59d01f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion user/filters/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ function check_data($formdata) {
// no data - no change except for empty filter
return false;
}
return array('operator'=>(int)$formdata->$operator, 'value'=>$formdata->$field);
// If field value is set then use it, else it's null.
$fieldvalue = null;
if (isset($formdata->$field)) {
$fieldvalue = $formdata->$field;
}
return array('operator' => (int)$formdata->$operator, 'value' => $fieldvalue);
}

return false;
Expand Down

0 comments on commit 59d01f9

Please sign in to comment.