Fix runtime errors while running without a connected database (#11473)

This commit is contained in:
Wildkins
2021-03-19 17:08:00 -04:00
committed by GitHub
parent 5e40f9145c
commit a07700f8a6
16 changed files with 47 additions and 96 deletions

View File

@@ -78,8 +78,7 @@
attributes += "&"
attributes += list2params(list("ckey" = user.ckey, "token" = token))
establish_db_connection(dbcon)
if (!dbcon.IsConnected())
if (!establish_db_connection(dbcon))
alert("An error occured while attempting to connect to the database!")
return 0