mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
If there are no quizzes this block can monitor, print it in bold.
This commit is contained in:
parent
9acdd7b2f8
commit
cab5d3cd04
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user