Make WordPress Core


Ignore:
Timestamp:
02/08/2009 04:20:34 AM (16 years ago)
Author:
azaozz
Message:

Fix PHP notices in HTTP API Cookies, props beaulebens, fixes #9068

File:
1 edited

Legend:

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

    r10512 r10524  
    13861386            }
    13871387        } else {
     1388            if ( !isset( $data['name'] ) )
     1389                return false;
     1390           
    13881391            // Set properties based directly on parameters
    1389             $this->name    = $data['name'];
    1390             $this->value   = $data['value'];
    1391             $this->expires = is_int( $data['expires'] ) ? $data['expires'] : strtotime( $data['expires'] );
    1392             $this->path    = $data['path'];
    1393             $this->domain  = $data['domain'];
     1392            $this->name   = $data['name'];
     1393            $this->value  = isset( $data['value'] ) ? $data['value'] : '';
     1394            $this->path   = isset( $data['path'] ) ? $data['path'] : '';
     1395            $this->domain = isset( $data['domain'] ) ? $data['domain'] : '';
     1396            if ( isset( $data['expires'] ) )
     1397                $this->expires = is_int( $data['expires'] ) ? $data['expires'] : strtotime( $data['expires'] );
     1398            else
     1399                $this->expires = null;
    13941400        }
    13951401    }
Note: See TracChangeset for help on using the changeset viewer.