Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'MDL-26496_m22' of git://github.com/rwijaya/moodle into …

…MOODLE_22_STABLE
  • Loading branch information...
commit cafbb73f5b8773877cd6e077e626d6a931772398 2 parents 46ccd8b + c468eab
Eloy Lafuente (stronk7) stronk7 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/lesson/pagetypes/multichoice.php
2  mod/lesson/pagetypes/multichoice.php
@@ -253,7 +253,7 @@ public function check_answer() {
253 253 }
254 254 } else {
255 255 // only one answer allowed
256   - if (empty($data->answerid) && !is_int($data->answerid)) {
  256 + if (!isset($data->answerid) || (empty($data->answerid) && !is_int($data->answerid))) {
257 257 $result->noanswer = true;
258 258 return $result;
259 259 }

0 comments on commit cafbb73

Please sign in to comment.
Something went wrong with that request. Please try again.