move new messages badge

This commit is contained in:
Philip Häusler 2014-08-24 16:46:30 +02:00
parent 53a10de5cf
commit fbdb8ae472
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ function user_unread_messages() {
if (isset($user)) { if (isset($user)) {
$new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID'])); $new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID']));
if ($new_messages > 0) if ($new_messages > 0)
return '<span class="badge">' . $new_messages . '</span>'; return '<span class="badge pull-right">' . $new_messages . '</span>';
} }
return ''; return '';
} }