From 0fa4836e66f9c7242c185e36d138f1158a3c1006 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 20 Jun 2015 14:38:40 +0200 Subject: Fix a warning when formatting user names Signed-off-by: Lukas Fleischer --- web/lib/aur.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') 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 = '' . $username_fmt . ''; -- cgit v1.2.3-70-g09d2