If there are no quizzes this block can monitor, print it in bold.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<?php
|
||||
$quizzes = get_records('quiz', 'course', $this->instance->pageid, '', 'id, name');
|
||||
if(empty($quizzes)) {
|
||||
print_string('config_no_quizzes_in_course', 'block_quiz_results');
|
||||
echo '<strong>'.get_string('config_no_quizzes_in_course', 'block_quiz_results').'</strong>';
|
||||
echo '<p><input type="hidden" name="quizid" value="0" /></p>';
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user