Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create fr_FR.inc + fix PHP Warning #14

Closed
wants to merge 2 commits into from
Closed

Create fr_FR.inc + fix PHP Warning #14

wants to merge 2 commits into from

Conversation

CorentinS6
Copy link
Contributor

No description provided.

fix "PHP Warning:  Undefined array key" for received-spf, x-spam-status and x-spam-level
@CorentinS6 CorentinS6 changed the title Create fr_FR.inc Create fr_FR.inc + fix PHP Warning Aug 14, 2024
@CorentinS6
Copy link
Contributor Author

fix #13

@@ -142,15 +142,15 @@ private function addressExternal($address) {
}

private function spfFails($headers) {
$spfStatus = $this->first($headers->others[strtolower($this->received_spf_header)]);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't null coalescing have the same effect?

$spfStatus = $this->first($headers->others[strtolower($this->received_spf_header)] ?? null);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
old habits...
i'll redo my pr

@CorentinS6 CorentinS6 closed this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants