Skip to content

Commit 5b35a71

Browse files
committed
Made replication more fault tolerant.
1 parent 313773e commit 5b35a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/modules.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function processDatalog() {
105105
$tmp_sql2 = substr($tmp_sql2,0,-1);
106106
//$tmp_sql1 .= "$idx[0]";
107107
//$tmp_sql2 .= "$idx[1]";
108-
$sql = "INSERT INTO $d[dbtable] ($tmp_sql1) VALUES ($tmp_sql2)";
108+
$sql = "REPLACE INTO $d[dbtable] ($tmp_sql1) VALUES ($tmp_sql2)";
109109
$app->db->query($sql);
110110
if($app->db->errorNumber > 0) {
111111
$replication_error = true;

0 commit comments

Comments
 (0)