Make WordPress Core

Changeset 10639


Ignore:
Timestamp:
02/23/2009 09:55:49 PM (18 years ago)
Author:
westi
Message:

Better Notice fixing and place a protective cast in the cookie handler. Fixes #9068 props filosofo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r10633 r10639  
    579579         */
    580580        function buildCookieHeader( &$r ) {
    581                 if ( isset($r['cookies']) && count( $r['cookies'] ) ) {
     581                if ( ! empty($r['cookies']) ) {
    582582                        $cookies_header = '';
    583                         foreach ( $r['cookies'] as $cookie ) {
     583                        foreach ( (array) $r['cookies'] as $cookie ) {
    584584                                $cookies_header .= $cookie->getHeaderValue() . '; ';
    585585                        }
Note: See TracChangeset for help on using the changeset viewer.