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:
parent
dc85026196
commit
c098ea6ae4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user