Fix job time stuff not detecting the database was down. (#81821)

This comment hasn't been true for 7 years.
This commit is contained in:
Kyle Spier-Swenson
2024-03-04 18:00:53 -08:00
committed by GitHub
parent a88013783a
commit ae109891c1
+2 -2
View File
@@ -1164,8 +1164,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(!CONFIG_GET(flag/use_age_restriction_for_jobs))
return 0
if(!isnum(player_age))
return 0 //This is only a number if the db connection is established, otherwise it is text: "Requires database", meaning these restrictions cannot be enforced
if(!isnum(player_age) || player_age < 0)
return 0
if(!isnum(days_needed))
return 0