mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'wip-mdl-35489-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE
This commit is contained in:
commit
59d01f93cd
1 changed files with 6 additions and 1 deletions
|
@ -62,7 +62,12 @@ class user_filter_text extends user_filter_type {
|
|||
// 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue