diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-20 14:38:40 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-20 14:38:40 +0200 |
commit | 0fa4836e66f9c7242c185e36d138f1158a3c1006 (patch) | |
tree | 6af906f6abd31342762ad1225318863a217fd4ac | |
parent | 61cdf09cd0581940639d0a6ebf09788f61b93eb9 (diff) | |
download | aur-0fa4836e66f9c7242c185e36d138f1158a3c1006.tar.gz aur-0fa4836e66f9c7242c185e36d138f1158a3c1006.tar.xz |
Fix a warning when formatting user names
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r-- | web/lib/aur.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index a45c9b69..7f923d75 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -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>'; |