mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Vote button code improvements (#1140)
* Vote button code improvements * Update thanks.php
This commit is contained in:
parent
cfb80987d4
commit
c046e8a8c1
3 changed files with 55 additions and 39 deletions
|
@ -38,7 +38,7 @@ if ($delete_dlstat_sql = implode(') OR (', $delete_dlstat_sql)) {
|
|||
// Save the last 50 votes for topics
|
||||
DB()->query('
|
||||
DELETE t1
|
||||
FROM' . BB_THX . ' t1
|
||||
FROM ' . BB_THX . ' t1
|
||||
JOIN (
|
||||
SELECT topic_id, MAX(time) as max_time
|
||||
FROM ' . BB_THX . '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue