Skip to content

Commit 96099f4

Browse files
committed
Fixed bug in replication.
1 parent 9725a27 commit 96099f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/modules.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function processDatalog() {
9595
$tmp_sql1 = '';
9696
$tmp_sql2 = '';
9797
foreach($data['new'] as $fieldname => $val) {
98-
$tmp_sql1 .= "$fieldname,";
98+
$tmp_sql1 .= "`$fieldname`,";
9999
$tmp_sql2 .= "'$val',";
100100
}
101101
$tmp_sql1 = substr($tmp_sql1,0,-1);
@@ -114,7 +114,7 @@ function processDatalog() {
114114
if($d["action"] == 'u') {
115115
$sql = "UPDATE $d[dbtable] SET ";
116116
foreach($data['new'] as $fieldname => $val) {
117-
$sql .= "$fieldname = '$val',";
117+
$sql .= "`$fieldname` = '$val',";
118118
}
119119
$sql = substr($sql,0,-1);
120120
$idx = explode(":",$d["dbidx"]);

0 commit comments

Comments
 (0)