If there are no quizzes this block can monitor, print it in bold.

This commit is contained in:
defacer 2005-01-27 23:59:12 +00:00
parent 9acdd7b2f8
commit cab5d3cd04

View File

@ -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 {