@@ -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