We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6464cc commit 76173aeCopy full SHA for 76173ae
docs/developers/awards.md
@@ -90,11 +90,9 @@ public function check($landing_rate = null): bool
90
{
91
// Have the default landing rate if it hasn't been set in the admin
92
// It's best to make sure you set a default value if you're using it
93
- if(!$landing_rate) {
94
- $landing_rate = 200;
95
- }
+ $landing_rate ??= -200;
96
97
- if($this->user->last_pirep->landing_rate <= (int) $landing_rate) {
+ if($this->user->last_pirep->landing_rate >= (int) $landing_rate) {
98
return true;
99
}
100
0 commit comments