fix torrentrss + backend torrent search

This commit is contained in:
xiaomlove
2023-09-23 03:04:58 +08:00
parent ea85572077
commit a84a6fd5c8
3 changed files with 12 additions and 6 deletions

View File

@@ -231,9 +231,13 @@ foreach ($list as $row)
{
$ownerInfo = get_user_row($row['owner']);
$title = "";
if ($row['anonymous'] == 'yes')
$author = 'anonymous';
else $author = $ownerInfo['username'];
if ($row['anonymous'] == 'yes') {
$author = 'anonymous';
} elseif (!empty($ownerInfo)) {
$author = $ownerInfo['username'];
} else {
$author = nexus_trans("nexus.user_not_exists");
}
$itemurl = $url."/details.php?id=".$row['id'];
if ($dllink)
$itemdlurl = $url."/download.php?id=".$row['id']."&downhash=" . rawurlencode( $user['id'] . '|'. $torrentRep->encryptDownHash($row['id'], $user));