Fixing warning "Undefined index: WPACFallback"
-
Hello,
I’me developing a site using your plugin with debug mode enabled and I’ve found this warning on each comment box:
Notice: Undefined index: WPACFallback in PATH\localhost\test\wp-content\plugins\wp-ajaxify-comments\wp-ajaxify-comments.php on line 667
Checking that line:
if ($_REQUEST['WPACFallback'] || wpac_is_ajax_request()) return $query;
I’ve fixed it by replacing that line for this one:
if ((isset($_REQUEST['WPACFallback']) && $_REQUEST['WPACFallback']) || wpac_is_ajax_request()) return $query;
I’m not sure if I’ve fixed it in a proper way or I messed something up elsewhere. Could you tell me if I’m right? Thanks.
Best regards.
- The topic ‘Fixing warning "Undefined index: WPACFallback"’ is closed to new replies.