diff --git a/library/ajax/view_post.php b/library/ajax/view_post.php index 163d15b83..ebe73a428 100644 --- a/library/ajax/view_post.php +++ b/library/ajax/view_post.php @@ -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'); diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index 3da83d6f0..a4350502e 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -169,7 +169,7 @@
{postrow.attach.tor_reged.FILESIZE}
- +