diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-05 14:47:38 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-06-05 15:12:10 +0200 |
commit | 0a66f48aa1293f93579b7de9bc5d080cf5f3105e (patch) | |
tree | b2e3712776bb21e2bdacc99bbb76f2488c3339e6 /web/template/tu_last_votes_list.php | |
parent | 7a5bfd83c4baec41bf8aa9015ef46eca5d629716 (diff) | |
download | aurweb-0a66f48aa1293f93579b7de9bc5d080cf5f3105e.tar.xz |
Do not return "None" in user functions
Return null instead of the string "None" in username_from_id(),
uid_from_email() and uid_from_username().
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/tu_last_votes_list.php')
-rw-r--r-- | web/template/tu_last_votes_list.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/tu_last_votes_list.php b/web/template/tu_last_votes_list.php index 090ce8d..e897a6a 100644 --- a/web/template/tu_last_votes_list.php +++ b/web/template/tu_last_votes_list.php @@ -22,9 +22,9 @@ <tr class="<?= $c ?>"> <td> <?php if (!$USE_VIRTUAL_URLS): ?> - <a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['UserID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= htmlspecialchars($username) ?>"><?= htmlspecialchars($username) ?></a></td> + <a href="<?= get_uri('/account/'); ?>?Action=AccountInfo&ID=<?= htmlspecialchars($row['UserID'], ENT_QUOTES) ?>" title="<?= __('View account information for')?> <?= html_format_username($username) ?>"><?= html_format_username($username) ?></a></td> <?php else: ?> - <a href="<?= get_uri('/account/') . htmlspecialchars($username, ENT_QUOTES) ?>" title="<?= __('View account information for %s', htmlspecialchars($username)) ?>"><?= htmlspecialchars($username) ?></a> + <a href="<?= get_uri('/account/') . html_format_username($username) ?>" title="<?= __('View account information for %s', html_format_username($username)) ?>"><?= html_format_username($username) ?></a> <?php endif; ?> </td> <td> |