web: allow badge disable

This commit is contained in:
David Anderson 2014-06-10 01:24:37 -07:00
parent 780284b9fa
commit 3776548971
1 changed files with 1 additions and 0 deletions

View File

@ -940,6 +940,7 @@ function redirect_to_secure_url($url) {
}
function show_badges($is_user, $item) {
if (DISABLE_BADGES) return;
if ($is_user) {
$bus = BoincBadgeUser::enum("user_id=$item->id");
} else {