Merged some fixes from new-attachments branch (#1700)

* Merged some fixes from `new-attachments` branch

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-12-07 20:29:21 +07:00 committed by GitHub
commit 83b465ddd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 13 additions and 10 deletions

View file

@ -355,7 +355,7 @@ switch ($mode) {
case 'set_download':
case 'unset_download':
$set_download = ($mode == 'set_download');
$new_dl_type = ($set_download) ? TOPIC_DL_TYPE_DL : TOPIC_DL_TYPE_NORMAL;
$new_dl_type = $set_download ? TOPIC_DL_TYPE_DL : TOPIC_DL_TYPE_NORMAL;
DB()->query("
UPDATE " . BB_TOPICS . " SET