Skip to content
Snippets Groups Projects
Commit 5b35a71a authored by tbrehm's avatar tbrehm
Browse files

Made replication more fault tolerant.

parent 313773e2
No related branches found
No related tags found
Loading
......@@ -105,7 +105,7 @@ class modules {
$tmp_sql2 = substr($tmp_sql2,0,-1);
//$tmp_sql1 .= "$idx[0]";
//$tmp_sql2 .= "$idx[1]";
$sql = "INSERT INTO $d[dbtable] ($tmp_sql1) VALUES ($tmp_sql2)";
$sql = "REPLACE INTO $d[dbtable] ($tmp_sql1) VALUES ($tmp_sql2)";
$app->db->query($sql);
if($app->db->errorNumber > 0) {
$replication_error = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment