Invalid argument supplied for foreach()
-
I got error message: Warning: Invalid argument supplied for foreach() in xxx\wp-content\plugins\wp-survey-and-poll\wordpress-survey-and-poll.php on line 229
I fixed it by if statement:
if (is_array($cookie_wpsap)) { foreach( $cookie_wpsap as $cwp ) { if( preg_match( '/[^A-Za-z0-9]/', $cwp ) ) { $illegal_char = true; } }
Can you add this fix to official repository?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.