FYI: PHP Notice: Undefined index: ant-spm-q
-
Hi,
Your plugin is fantastic. I just wanted to report some notices that are logged within debug.log:
[30-Aug-2014 15:04:24 UTC] PHP Notice: Undefined index: ant-spm-q in /home/userdir/public_html/wp-content/plugins/anti-spam/anti-spam.php on line 102 [30-Aug-2014 15:04:24 UTC] PHP Notice: Undefined index: ant-spm-q in /home/userdir/public_html/wp-content/plugins/anti-spam/anti-spam.php on line 105
I know I could edit the file and apply my own fix, such as:
if ( array_key_exists('ant-spm-q', $_POST) && trim( $_POST['ant-spm-q'] ) != date('Y') ) {
or prefixing @ to suppress the notice, but I just wanted to bring it to your attention so that you could update your plugin (if you so choose) to execute without notices when debug mode is enabled.
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘FYI: PHP Notice: Undefined index: ant-spm-q’ is closed to new replies.