[aur-dev] [PATCH 1/2] Create missing foreign key for comments
Signed-off-by: Marcel Korpel
Signed-off-by: Marcel Korpel
Due to the use of html_format_username() the username was set to "None"
if the user was deleted, causing the condition of an empty username
never being met. Fixed with an extra variable that stores the formatted
username.
Signed-off-by: Marcel Korpel
<?php if ($row['UserName']): ?>
- <?= __('%s commented', $row['UserName']) ?>
+ <?= __('%s commented', $formatted_username) ?>
<?php else: ?>
<?= __('Anonymous comment') ?>
<?php endif; ?>
--
2.4.5
participants (1)
-
Marcel Korpel