From 7b6aa33869835f9c3c03991a9f6c404ba75cdc2b Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Thu, 21 May 2020 16:29:09 -0400 Subject: [PATCH] Syntaxfix --- code/modules/karma/karma.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/karma/karma.dm b/code/modules/karma/karma.dm index 2935cd394be..134cc25fcd2 100644 --- a/code/modules/karma/karma.dm +++ b/code/modules/karma/karma.dm @@ -424,7 +424,7 @@ GLOBAL_LIST_EMPTY(karma_spenders) /client/proc/karmacharge(var/cost,var/refund = FALSE) var/sanitzedkey = sanitizeSQL(usr.ckey) - var/DBQuery/query = GLOB.dbcon.NewQuery("SELECT * FROM [format_table_name("karmatotals")] WHERE byondkey='[sanitizeSQL]'") + var/DBQuery/query = GLOB.dbcon.NewQuery("SELECT * FROM [format_table_name("karmatotals")] WHERE byondkey='[sanitzedkey]'") query.Execute() while(query.NextRow()) @@ -433,7 +433,7 @@ GLOBAL_LIST_EMPTY(karma_spenders) spent -= cost else spent += cost - query = GLOB.dbcon.NewQuery("UPDATE [format_table_name("karmatotals")] SET karmaspent=[spent] WHERE byondkey='[sanitizeSQL]'") + query = GLOB.dbcon.NewQuery("UPDATE [format_table_name("karmatotals")] SET karmaspent=[spent] WHERE byondkey='[sanitzedkey]'") if(!query.Execute()) queryErrorLog(query.ErrorMsg(),"updating existing entry") return