Skip to content

Commit

Permalink
[MIRROR] Fix job time stuff not detecting the database was down. (#1277)
Browse files Browse the repository at this point in the history
* Fix job time stuff not detecting the database was down. (#81821)

This comment hasn't been true for 7 years.

* Fix job time stuff not detecting the database was down.

---------

Co-authored-by: Kyle Spier-Swenson <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Mar 5, 2024
1 parent ec7cdad commit 30a6d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,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
Expand Down

0 comments on commit 30a6d6c

Please sign in to comment.