Fixes fake feedback link if db calls fail (#90209)

## About The Pull Request

We were nullchecking this instead of falsey checking it (TAKE THAT
ISNULL POSTERS) so it'd see FALSE, go "oh that's not null", and then try
and link clients to 0. Dumb
This commit is contained in:
LemonInTheDark
2025-03-25 16:53:31 +01:00
committed by GitHub
parent 8ac8fd086d
commit 1714a941ea
+3 -3
View File
@@ -172,18 +172,18 @@ GLOBAL_PROTECT(href_token)
return cached_feedback_link
if (!SSdbcore.IsConnected())
return FALSE
return null
var/datum/db_query/feedback_query = SSdbcore.NewQuery("SELECT feedback FROM [format_table_name("admin")] WHERE ckey = '[owner.ckey]'")
if(!feedback_query.Execute())
log_sql("Error retrieving feedback link for [src]")
qdel(feedback_query)
return FALSE
return null
if(!feedback_query.NextRow())
qdel(feedback_query)
return FALSE // no feedback link exists
return null // no feedback link exists
cached_feedback_link = feedback_query.item[1] || NO_FEEDBACK_LINK
qdel(feedback_query)