Minor improvements (#1358)

* Minor improvements

* Update viewtopic_torrent.tpl

* Update admin_rebuild_search.php

* Updated

* Apply fixes from StyleCI (#1361)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Update CHANGELOG.md

---------

Co-authored-by: Yury Pikhtarev <exileum@icloud.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Roman Kelesidis 2024-01-30 22:18:05 +07:00 committed by GitHub
commit 46910d3015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 26 additions and 23 deletions

View file

@ -40,8 +40,7 @@ switch ($mode) {
$values = "$topic_id, {$userdata['user_id']}, " . TIMENOW;
DB()->query('INSERT IGNORE INTO ' . BB_THX . " ($columns) VALUES ($values)");
break;
}
else {
} else {
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
}
@ -56,12 +55,11 @@ switch ($mode) {
$this->response['html'] = join(', ', $user_list) ?: $lang['NO_LIKES'];
break;
}
else {
} else {
$this->ajax_die($lang['NEED_TO_LOGIN_FIRST']);
}
default:
$this->ajax_die('Invalid mode: ' . $mode);
default:
$this->ajax_die('Invalid mode: ' . $mode);
}
$this->response['mode'] = $mode;