mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
ae613c9c70
commit
46910d3015
7 changed files with 26 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue