From 6f28d769a0f68f09bb541e19e0d0d9935d529f87 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 24 Oct 2008 10:55:20 +0000 Subject: [PATCH] Fix a PHP Notice. props DD32. see #7509 git-svn-id: http://svn.automattic.com/wordpress/trunk@9323 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index ebb9c0d19..24521c6e0 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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 ); }