Foreach – Error Message
-
Hi, nice plugin…thx! I’m troubleshooting this error message, below. Any ideas what the problem might be? thx.
[11-Apr-2015 23:27:20 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/lamplig9/public_html/wp-content/plugins/wp-backitup/lib/includes/class-job.php on line 618
Here’s the code from class-job.
if ( is_array( $value ) ) {
foreach ( $value as $k => $v ) {
if ( is_array( $v ) ) {
$value[$k] = $this->wpb_slash( $v );
} else {
$value[$k] = addslashes( $v );
}
}
} else {
$value = addslashes( $value );
}
return $value;
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Foreach – Error Message’ is closed to new replies.