Adding isset to prevent error message
-
On Front-End Only Users v2.6.13
Wordpress v4.4.1When I enable WP_DEBUG, I see an error message:
Notice: Undefined index: page in ...\wp\wp-content\plugins\front-end-only-users\Main.php on line 181
After inspecting the code I think you should change line 181 from:
if (get_option("EWD_FEUP_Run_Tutorial") == "Yes" and $_GET['page'] == 'EWD-FEUP-options') {
to:
if (get_option("EWD_FEUP_Run_Tutorial") == "Yes" and isset($_GET['page']) and $_GET['page'] == 'EWD-FEUP-options') {
Hope this helps.
Cheers,
Tony.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding isset to prevent error message’ is closed to new replies.