Fix a PHP Notice. props DD32. see #7509

git-svn-id: https://develop.svn.wordpress.org/trunk@9323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-10-24 10:55:20 +00:00
parent 9a5b1ac108
commit 57900b6ba9
1 changed files with 3 additions and 1 deletions

View File

@ -158,8 +158,10 @@ function wp_update_plugins() {
$response = unserialize( $raw_response['body'] );
if ( $response )
if ( false !== $response )
$new_option->response = $response;
else
$new_option->response = array();
update_option( 'update_plugins', $new_option );
}