Fix a PHP Notice. props DD32. see #7509

git-svn-id: http://svn.automattic.com/wordpress/trunk@9323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-10-24 10:55:20 +00:00
parent c3c2c50844
commit 6f28d769a0
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 );
}