修复 附件点击数不更新

This commit is contained in:
Discuz! 2017-02-17 16:14:44 +08:00
parent f3384c5b95
commit e419966f5f
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class table_forum_attachment extends discuz_table
}
public function update_download($aid, $count = 1) {
$this->clear_cache($aid);
return DB::query("UPDATE %t SET downloads=downloads+%d WHERE aid IN (%n)", array($this->_table, $count, (array)$aid), false, true);
}