We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9725a27 commit 96099f4Copy full SHA for 96099f4
server/lib/classes/modules.inc.php
@@ -95,7 +95,7 @@ function processDatalog() {
95
$tmp_sql1 = '';
96
$tmp_sql2 = '';
97
foreach($data['new'] as $fieldname => $val) {
98
- $tmp_sql1 .= "$fieldname,";
+ $tmp_sql1 .= "`$fieldname`,";
99
$tmp_sql2 .= "'$val',";
100
}
101
$tmp_sql1 = substr($tmp_sql1,0,-1);
@@ -114,7 +114,7 @@ function processDatalog() {
114
if($d["action"] == 'u') {
115
$sql = "UPDATE $d[dbtable] SET ";
116
117
- $sql .= "$fieldname = '$val',";
+ $sql .= "`$fieldname` = '$val',";
118
119
$sql = substr($sql,0,-1);
120
$idx = explode(":",$d["dbidx"]);
0 commit comments