mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Fix-typo (#1124)
This commit is contained in:
parent
0ba6ebc228
commit
20662f16e1
1 changed files with 2 additions and 2 deletions
|
@ -2066,6 +2066,8 @@ function hash_search($hash)
|
||||||
bb_die(sprintf($lang['HASH_INVALID'], $hash));
|
bb_die(sprintf($lang['HASH_INVALID'], $hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$info_hash = DB()->escape(pack('H*', $hash));
|
||||||
|
|
||||||
// Check info_hash version
|
// Check info_hash version
|
||||||
if (mb_strlen($hash, 'UTF-8') == 40) {
|
if (mb_strlen($hash, 'UTF-8') == 40) {
|
||||||
$info_hash_where = "WHERE info_hash = '$info_hash'";
|
$info_hash_where = "WHERE info_hash = '$info_hash'";
|
||||||
|
@ -2075,8 +2077,6 @@ function hash_search($hash)
|
||||||
bb_die(sprintf($lang['HASH_INVALID'], $hash));
|
bb_die(sprintf($lang['HASH_INVALID'], $hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
$info_hash = DB()->escape(pack('H*', $hash));
|
|
||||||
|
|
||||||
if ($row = DB()->fetch_row("SELECT topic_id FROM " . BB_BT_TORRENTS . " $info_hash_where")) {
|
if ($row = DB()->fetch_row("SELECT topic_id FROM " . BB_BT_TORRENTS . " $info_hash_where")) {
|
||||||
redirect(TOPIC_URL . $row['topic_id']);
|
redirect(TOPIC_URL . $row['topic_id']);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue