Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pinc/FormatPreview.inc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ class FormatPreview
"
INSERT INTO format_preview_events
(projectid, image, round_id, username, timestamp)
SELECT '%s', image, round_id, username, timestamp
FROM format_preview_events
WHERE projectid = '%s' $images_where
SELECT * FROM (
SELECT '%s', image, round_id, username, timestamp
FROM format_preview_events
WHERE projectid = '%s' $images_where) AS new
ON DUPLICATE KEY UPDATE
timestamp = new.timestamp
",
DPDatabase::escape($dest_projectid),
DPDatabase::escape($src_projectid)
Expand Down
Loading