Fix notice. Props sivel. fixes #9068

git-svn-id: http://svn.automattic.com/wordpress/trunk@10633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-02-23 06:40:03 +00:00
parent 1c169009f1
commit ffb28cf66d

View File

@ -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() . '; ';