[aur-dev] [PATCH] Fix a warning when formatting user names

Lukas Fleischer lfleischer at archlinux.org
Sat Jun 20 12:39:10 UTC 2015


Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/lib/aur.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>';
-- 
2.4.4


More information about the aur-dev mailing list