mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Check topic_id existence while searching in tracker mode (#1155)
This commit is contained in:
parent
552badbfb7
commit
8f5efa2fa8
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ if (!defined('IN_AJAX')) {
|
|||
global $user, $lang;
|
||||
|
||||
$post_id = isset($this->request['post_id']) ? (int)$this->request['post_id'] : null;
|
||||
$topic_id = (int)$this->request['topic_id'];
|
||||
$topic_id = isset($this->request['topic_id']) ? (int)$this->request['topic_id'] : null;
|
||||
|
||||
if (is_null($post_id)) {
|
||||
$post_id = DB()->fetch_row("SELECT topic_first_post_id FROM " . BB_TOPICS . " WHERE topic_id = $topic_id", 'topic_first_post_id');
|
||||
|
|
|
@ -169,7 +169,7 @@
|
|||
<p class="small">{postrow.attach.tor_reged.FILESIZE}</p>
|
||||
<p style="padding-top: 6px;"><input id="tor-filelist-btn" type="button" class="lite" value="{L_FILELIST}" /></p>
|
||||
<!-- IF postrow.attach.tor_reged.HASH_V2 -->
|
||||
<p><a href="{PAGE_URL}&filelist=1" title = "File hashes | Detailed .torrent meta info" target="_blank">...</a></p>
|
||||
<p><a href="{FULL_URL}viewtopic.php?filelist&t={TOPIC_ID}" title = "File hashes | Detailed .torrent meta info" target="_blank">...</a></p>
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue