Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Slight "correctness" correction.

  • Loading branch information...
commit 309ed997b366c9eb1d12d9ba3d254a0731f79f5c 1 parent 5c15bd8
defacer authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 blocks/quiz_results/block_quiz_results.php
8 blocks/quiz_results/block_quiz_results.php
@@ -20,15 +20,15 @@ function get_content() {
20 20 if ($this->content !== NULL) {
21 21 return $this->content;
22 22 }
23   - if (empty($this->instance)) {
24   - $this->content = '';
25   - return $this->content;
26   - }
27 23
28 24 $this->content = new stdClass;
29 25 $this->content->text = '';
30 26 $this->content->footer = '';
31 27
  28 + if (empty($this->instance)) {
  29 + return $this->content;
  30 + }
  31 +
32 32 if($this->instance->pagetype == 'course-view') {
33 33 // We need to see if we are monitoring a quiz
34 34 $quizid = empty($this->config->quizid) ? 0 : $this->config->quizid;

0 comments on commit 309ed99

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