Skip to content

Commit

Permalink
Fixed unintentional blocking when stats are null
Browse files Browse the repository at this point in the history
  • Loading branch information
BMWENING committed Jun 26, 2024
1 parent 7d95f4f commit 9e7cbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function transferEligible(
// 50 hours consolidating current rating
$ratingHours = VATSIMApi2Helper::fetchRatingHours($this->cid);
if ($ratingHours == null) {
$checks['50hrs'] = 0;
$checks['50hrs'] = 1;
$checks['ratingHours'] = 0;
}
else if($this->rating == Helper::ratingIntFromShort("S1") && $ratingHours['s1'] < 50){
Expand Down

0 comments on commit 9e7cbcb

Please sign in to comment.