From 4fecb1a03d3cbe946c4ef4ea4047a1287b4d9f62 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 23 Feb 2009 06:40:03 +0000 Subject: [PATCH] Fix notice. Props sivel. fixes #9068 git-svn-id: https://develop.svn.wordpress.org/trunk@10633 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 e0363e782f..61779225d7 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() . '; ';