Skip to content

Commit 8662458

Browse files
committed
1 parent f669291 commit 8662458

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

interface/web/admin/server_config_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function onUpdateSave($sql) {
8383
$server_config_array[$section] = $app->tform->encode($this->dataRecord,$section);
8484
$server_config_str = $app->ini_parser->get_ini_string($server_config_array);
8585

86-
$app->db->datalogUpdate('server', "SET config = '".$app->db->quote($server_config_str)."'", 'server_id', $server_id);
86+
$app->db->datalogUpdate('server', "config = '".$app->db->quote($server_config_str)."'", 'server_id', $server_id);
8787
}
8888

8989
}

interface/web/mail/mail_domain_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function onAfterInsert() {
163163
$tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '@".mysql_real_escape_string($this->dataRecord["domain"])."'");
164164
if($tmp_user["id"] > 0) {
165165
// There is already a record that we will update
166-
$app->db->datalogUpdate('spamfilter_users', "SET policy_id = $ploicy_id", 'id', $tmp_user["id"]);
166+
$app->db->datalogUpdate('spamfilter_users', "policy_id = $ploicy_id", 'id', $tmp_user["id"]);
167167
} else {
168168
$tmp_domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain_id = ".$this->id);
169169
// We create a new record
@@ -213,7 +213,7 @@ function onAfterUpdate() {
213213
if($policy_id > 0) {
214214
if($tmp_user["id"] > 0) {
215215
// There is already a record that we will update
216-
$app->db->datalogUpdate('spamfilter_users', "SET policy_id = $ploicy_id", 'id', $tmp_user["id"]);
216+
$app->db->datalogUpdate('spamfilter_users', "policy_id = $ploicy_id", 'id', $tmp_user["id"]);
217217
} else {
218218
$tmp_domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain_id = ".$this->id);
219219
// We create a new record

interface/web/mail/mail_user_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function onAfterInsert() {
208208
$tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '".mysql_real_escape_string($this->dataRecord["email"])."'");
209209
if($tmp_user["id"] > 0) {
210210
// There is already a record that we will update
211-
$app->db->datalogUpdate('spamfilter_users', "SET policy_id = $ploicy_id", 'id', $tmp_user["id"]);
211+
$app->db->datalogUpdate('spamfilter_users', "policy_id = $ploicy_id", 'id', $tmp_user["id"]);
212212
} else {
213213
// We create a new record
214214
$insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`)
@@ -233,7 +233,7 @@ function onAfterUpdate() {
233233
if($policy_id > 0) {
234234
if($tmp_user["id"] > 0) {
235235
// There is already a record that we will update
236-
$app->db->datalogUpdate('spamfilter_users', "SET policy_id = $ploicy_id", 'id', $tmp_user["id"]);
236+
$app->db->datalogUpdate('spamfilter_users', "policy_id = $ploicy_id", 'id', $tmp_user["id"]);
237237
} else {
238238
// We create a new record
239239
$insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`)

0 commit comments

Comments
 (0)