Undefined Index Notices
-
Hello!
I’m running the latest version of both WordPress and this plugin and our debug logs have been receiving many PHP notices regarding undefined indices:
PHP Notice: Undefined index: HTTP_USER_AGENT in /httpdocs/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_wp.php on line 517
The line in question is a big ole’ bot-check line as far as I can tell. I’d like to see it updated to test if
HTTP_USER_AGENTexists first before jumping in the lengthy conditional:if( ! isset( $_SERVER['HTTP_USER_AGENT'] ) ) { return; }Or something similar to prevent these notices from cropping up.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Undefined Index Notices’ is closed to new replies.