mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Some code quality improvements (#1148)
This commit is contained in:
parent
ed3e28827b
commit
491c03c243
8 changed files with 13 additions and 12 deletions
|
@ -13,10 +13,10 @@ if (!defined('IN_AJAX')) {
|
|||
|
||||
global $user, $lang;
|
||||
|
||||
$post_id = (int)@$this->request['post_id'];
|
||||
$topic_id = (int)@$this->request['topic_id'];
|
||||
$post_id = isset($this->request['post_id']) ? (int)$this->request['post_id'] : null;
|
||||
$topic_id = (int)$this->request['topic_id'];
|
||||
|
||||
if (!$post_id) {
|
||||
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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue