mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-82233 badges: Display awarded users only when it applies
The message with the number of uses who have awarded a badge were displayed always (even when the badge was disabled).
This commit is contained in:
parent
ad7fc69c25
commit
062acb0529
@ -75,7 +75,7 @@ echo $OUTPUT->heading(print_badge_image($badge, $context, 'small') . ' ' . $badg
|
||||
|
||||
if ($awards == 'cron') {
|
||||
echo $OUTPUT->notification(get_string('awardoncron', 'badges'), 'notifysuccess');
|
||||
} else if ($awards != 0) {
|
||||
} else if ((int)$awards > 0) {
|
||||
echo $OUTPUT->notification(get_string('numawardstat', 'badges', $awards), 'notifysuccess');
|
||||
}
|
||||
echo $output->print_badge_status_box($badge);
|
||||
|
Loading…
x
Reference in New Issue
Block a user