mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#882)
* Minor improvements * Updated * Updated * Updated * Update privmsg.php * Updated * Update admin_attach_cp.php
This commit is contained in:
parent
2c07660435
commit
4b453de64a
75 changed files with 699 additions and 735 deletions
|
@ -30,11 +30,11 @@ if (!$post) {
|
|||
$this->ajax_die('not post');
|
||||
}
|
||||
|
||||
$data = array(
|
||||
$data = [
|
||||
'mc_comment' => ($mc_type) ? $mc_text : '',
|
||||
'mc_type' => $mc_type,
|
||||
'mc_user_id' => ($mc_type) ? $userdata['user_id'] : 0,
|
||||
);
|
||||
'mc_user_id' => ($mc_type) ? $userdata['user_id'] : 0
|
||||
];
|
||||
$sql_args = DB()->build_array('UPDATE', $data);
|
||||
DB()->query("UPDATE " . BB_POSTS . " SET $sql_args WHERE post_id = $post_id");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue