diff --git a/phpBB/index.php b/phpBB/index.php
index 442a94c34c..59e51bac49 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -46,7 +46,14 @@ $result = $db->sql_query($sql);
$legend = '';
while ($row = $db->sql_fetchrow($result))
{
- $legend .= (($legend != '') ? ', ' : '') . '' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '';
+ if ($row['group_name'] == 'BOTS')
+ {
+ $legend .= (($legend != '') ? ', ' : '') . '' . $user->lang['G_BOTS'] . '';
+ }
+ else
+ {
+ $legend .= (($legend != '') ? ', ' : '') . '' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '';
+ }
}
$db->sql_freeresult($result);
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index becd307bf7..829bdc59fe 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -346,7 +346,14 @@ $result = $db->sql_query($sql);
$legend = '';
while ($row = $db->sql_fetchrow($result))
{
- $legend .= (($legend != '') ? ', ' : '') . '' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '';
+ if ($row['group_name'] == 'BOTS')
+ {
+ $legend .= (($legend != '') ? ', ' : '') . '' . $user->lang['G_BOTS'] . '';
+ }
+ else
+ {
+ $legend .= (($legend != '') ? ', ' : '') . '' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '';
+ }
}
$db->sql_freeresult($result);