mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix a warning when formatting user names
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
61cdf09cd0
commit
0fa4836e66
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ function username_from_sid($sid="") {
|
||||||
function html_format_username($username) {
|
function html_format_username($username) {
|
||||||
$username_fmt = $username ? htmlspecialchars($username, ENT_QUOTES) : __("None");
|
$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 = '<a href="' . get_uri('/account/') . $username_fmt;
|
||||||
$link .= '" title="' . __('View account information for %s', $username_fmt);
|
$link .= '" title="' . __('View account information for %s', $username_fmt);
|
||||||
$link .= '">' . $username_fmt . '</a>';
|
$link .= '">' . $username_fmt . '</a>';
|
||||||
|
|
Loading…
Add table
Reference in a new issue