Skip to content
Browse files

Slight "correctness" correction.

  • Loading branch information...
1 parent 5c15bd8 commit 309ed997b366c9eb1d12d9ba3d254a0731f79f5c defacer committed Jul 19, 2005
Showing with 4 additions and 4 deletions.
  1. +4 −4 blocks/quiz_results/block_quiz_results.php
View
8 blocks/quiz_results/block_quiz_results.php
@@ -20,15 +20,15 @@ function get_content() {
if ($this->content !== NULL) {
return $this->content;
}
- if (empty($this->instance)) {
- $this->content = '';
- return $this->content;
- }
$this->content = new stdClass;
$this->content->text = '';
$this->content->footer = '';
+ if (empty($this->instance)) {
+ return $this->content;
+ }
+
if($this->instance->pagetype == 'course-view') {
// We need to see if we are monitoring a quiz
$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.