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

PHP Warning on root menu page #22

Open
mathetos opened this issue Oct 13, 2017 · 0 comments
Open

PHP Warning on root menu page #22

mathetos opened this issue Oct 13, 2017 · 0 comments

Comments

@mathetos
Copy link
Owner

mathetos commented Oct 13, 2017

If clicking on "Tools > Send System Info" you're presented with a PHP Warning:
Notice: Undefined index: tab in ...\wp-content\plugins\send-system-info\views\send-system-info.php on line 44

This is because there is no $_GET["tab"] present in the url.

Solution
Define $tab with a ternary operator so there's a fallback.

mathetos added a commit that referenced this issue Oct 13, 2017
mathetos added a commit that referenced this issue Oct 13, 2017
This reverts commit 82207c5.
mathetos added a commit that referenced this issue Oct 13, 2017
This reverts commit c7a8c83.
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

No branches or pull requests

1 participant