1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Fixes #3827 - forum ranks - avoid showing empty badge

This commit is contained in:
Tijn Kuyper 2019-09-17 13:13:03 +02:00
parent dc85026196
commit c098ea6ae4
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -680,14 +680,14 @@
// FIXME - level handler!!!
// print_a($rankInfo);
if(empty($rankInfo))
{
return null;
}
if($parm == 'badge')
{
return "<span class='label label-info'>" . $rankInfo['name'] . "</span>";
if(!empty($rankInfo['name']))
{
return "<span class='label label-info'>" . $rankInfo['name'] . "</span>";
}
}
if(!$parm)