mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-30 12:02:24 +00:00
Bad Contest Reporting (#804)
Fixes a runtime error that was added due to stupidity.
This commit is contained in:
@@ -59,12 +59,16 @@
|
||||
|
||||
var/params[] = list(":ckey" = owner.current.client.ckey, ":char_id" = owner.current.client.prefs.current_character, ":char_faction" = INDEP, ":obj_type" = type_name, ":obj_side" = side, ":obj_outcome" = completed)
|
||||
|
||||
var/list/faction_data = contest_faction_data(get_query.item[1])
|
||||
params[":char_faction"] = faction_data[1]
|
||||
if (get_query.NextRow())
|
||||
var/list/faction_data = contest_faction_data(get_query.item[1])
|
||||
params[":char_faction"] = faction_data[1]
|
||||
|
||||
var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO ss13_contest_reports (id, player_ckey, character_id, character_faction, objective_type, objective_side, objective_outcome, objective_datetime) VALUES (NULL, :ckey, :char_id, :char_faction, :obj_type, :obj_side, :obj_outcome, NOW())")
|
||||
log_query.Execute(params)
|
||||
|
||||
if (log_query.ErrorMsg())
|
||||
log_debug("CONTEST: Error uploading results. Datadump: [list2params(params)]")
|
||||
|
||||
/*
|
||||
* Pro-synth objectives
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user