Fix a source of undeleted query spamming admin chat when gathering admin feedback threads from the database. (#67261)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Timberpoes
2022-05-25 23:58:02 +01:00
committed by GitHub
parent c5063c1d8c
commit 4e6a9cf361
+4
View File
@@ -181,10 +181,14 @@ GLOBAL_PROTECT(href_token)
if(!feedback_query.Execute())
log_sql("Error retrieving feedback link for [src]")
qdel(feedback_query)
return cached_forum_link
if(!feedback_query.NextRow())
qdel(feedback_query)
return FALSE // no feedback link exists
qdel(feedback_query)
cached_forum_link = feedback_query.item[1]
return cached_forum_link