Commit 5b35a71a authored by tbrehm's avatar tbrehm

Made replication more fault tolerant.

parent 313773e2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment