Fix a warning when formatting user names

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-06-20 14:38:40 +02:00
parent 61cdf09cd0
commit 0fa4836e66

View file

@ -186,7 +186,7 @@ function username_from_sid($sid="") {
function html_format_username($username) {
$username_fmt = $username ? htmlspecialchars($username, ENT_QUOTES) : __("None");
if ($username && $_COOKIE["AURSID"]) {
if ($username && isset($_COOKIE["AURSID"])) {
$link = '<a href="' . get_uri('/account/') . $username_fmt;
$link .= '" title="' . __('View account information for %s', $username_fmt);
$link .= '">' . $username_fmt . '</a>';