mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +01:00
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:
committed by
GitHub
parent
a88013783a
commit
ae109891c1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user