mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Some cleanup for attach mod (#1250)
* Some cleanup for attach mod * Update displaying.php * Update CHANGELOG.md
This commit is contained in:
parent
65c7903b21
commit
94f1641b5c
10 changed files with 45 additions and 179 deletions
|
@ -201,7 +201,7 @@ if ($submit_change && $view === 'attachments') {
|
|||
if (isset($attachments['_' . $attachrow['attach_id']])) {
|
||||
if ($attachrow['comment'] != $attachments['_' . $attachrow['attach_id']]['comment'] || $attachrow['download_count'] != $attachments['_' . $attachrow['attach_id']]['download_count']) {
|
||||
$sql = 'UPDATE ' . BB_ATTACHMENTS_DESC . "
|
||||
SET comment = '" . attach_mod_sql_escape($attachments['_' . $attachrow['attach_id']]['comment']) . "', download_count = " . (int)$attachments['_' . $attachrow['attach_id']]['download_count'] . '
|
||||
SET comment = '" . DB()->escape($attachments['_' . $attachrow['attach_id']]['comment']) . "', download_count = " . (int)$attachments['_' . $attachrow['attach_id']]['download_count'] . '
|
||||
WHERE attach_id = ' . (int)$attachrow['attach_id'];
|
||||
|
||||
if (!DB()->sql_query($sql)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue