mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
c3c2c50844
commit
6f28d769a0
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user