From ffb28cf66db19b4d4d76ae7497cf8aafa8a4fb99 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 23 Feb 2009 06:40:03 +0000 Subject: [PATCH] Fix notice. Props sivel. fixes #9068 git-svn-id: http://svn.automattic.com/wordpress/trunk@10633 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index e0363e782..61779225d 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -578,7 +578,7 @@ class WP_Http { * @param array $r Full array of args passed into ::request() */ function buildCookieHeader( &$r ) { - if ( count( $r['cookies'] ) ) { + if ( isset($r['cookies']) && count( $r['cookies'] ) ) { $cookies_header = ''; foreach ( $r['cookies'] as $cookie ) { $cookies_header .= $cookie->getHeaderValue() . '; ';