Skip to content

Commit

Permalink
MDL-47959 mod_quiz: fixed 0 questions bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Oct 31, 2014
1 parent 323ed3b commit 1a14f8a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Expand Up @@ -124,10 +124,10 @@ Y.extend(TOOLBOX, Y.Base, {
} catch (e) {}

// Run the callback if we have one.
if (responsetext.newsummarks) {
if (responsetext.hasOwnProperty('newsummarks')) {
Y.one(SELECTOR.SUMMARKS).setHTML(responsetext.newsummarks);
}
if (responsetext.newnumquestions) {
if (responsetext.hasOwnProperty('newnumquestions')) {
Y.one(SELECTOR.NUMQUESTIONS).setHTML(M.util.get_string('numquestionsx', 'quiz', responsetext.newnumquestions));
}
if (success_callback) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a14f8a

Please sign in to comment.