Skip to content

Commit

Permalink
Merge branch 'MDL-44952-master' of git://github.com/marinaglancy/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Feb 29, 2016
2 parents c3717ca + 8ad534b commit b70b436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod/feedback/item/multichoice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ public function check_value($value, $item) {
return true;
}

if (!isset($value) OR !is_array($value) OR $value[0] == '' OR $value[0] == 0) {
if (empty($value) OR !is_array($value) OR $value[0] == '' OR $value[0] == 0) {
return false;
}

Expand Down
1 change: 1 addition & 0 deletions mod/feedback/item/multichoice/multichoice_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function definition() {
$mform->addElement('selectyesno',
'hidenoselect',
get_string('hide_no_select_option', 'feedback'));
$mform->disabledIf('hidenoselect', 'subtype', 'ne', 'r');

$mform->addElement('textarea', 'values', get_string('multichoice_values', 'feedback'),
'wrap="virtual" rows="10" cols="65"');
Expand Down

0 comments on commit b70b436

Please sign in to comment.