summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-20 14:38:40 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-20 14:38:40 +0200
commit0fa4836e66f9c7242c185e36d138f1158a3c1006 (patch)
tree6af906f6abd31342762ad1225318863a217fd4ac /web/lib
parent61cdf09cd0581940639d0a6ebf09788f61b93eb9 (diff)
downloadaurweb-0fa4836e66f9c7242c185e36d138f1158a3c1006.tar.xz
Fix a warning when formatting user names
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aur.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index a45c9b6..7f923d7 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>';