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

Check if _SERVER['HTTP_USER_AGENT'] exists #7

Merged
merged 1 commit into from
May 23, 2022

Conversation

matthi4s
Copy link
Contributor

@matthi4s matthi4s commented Nov 2, 2021

In PHP 8.0+ accessing a non-existing array key produces a warning. This checks if the $_SERVER['HTTP_USER_AGENT'] exists before accessing it.

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