Skip to content

Commit

Permalink
remain timestamp when appending data
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Aug 19, 2024
1 parent d1ff840 commit 36a25da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Server/appendsimulationdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

$newSize = (int)$obj->size + $size;

if (!$db->query("UPDATE simulation SET content" . (string)($chunkIndex + 1) . " = '" . addslashes($content) . "', size = $newSize WHERE ID = $simId")) {
if (!$db->query("UPDATE simulation SET TIMESTAMP=TIMESTAMP, content" . (string)($chunkIndex + 1) . " = '" . addslashes($content) . "', size = $newSize WHERE ID = $simId")) {
echo json_encode(["result"=>false]);
$db->close();
exit;
Expand Down

0 comments on commit 36a25da

Please sign in to comment.