Fix logical operator (#1318)

That `if` should return `true` when both conditions are met (pirep not accepted and not rejected yet), so **AND** must be used there ;) Sorry for the trouble.

Now it works and listens more carefully.
pull/1320/head
B.Fatih KOZ 3 years ago committed by GitHub
parent 14e33574fc
commit f99af4cfc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -479,7 +479,7 @@ class PirepService extends Service
$pirep->refresh();
// Figure out what pirep state should be, if nothing provided yet.
if ($pirep->state != PirepState::ACCEPTED || $pirep->state != PirepState::REJECTED) {
if ($pirep->state != PirepState::ACCEPTED && $pirep->state != PirepState::REJECTED) {
$default_state = PirepState::PENDING;
} else {
$default_state = $pirep->state;

Loading…
Cancel
Save