Make WordPress Core


Ignore:
Timestamp:
11/14/2008 11:01:16 PM (16 years ago)
Author:
ryan
Message:

Notice fixes from DD32. see #7509

File:
1 edited

Legend:

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

    r9554 r9699  
    460460        if ( $cache_status == 'STALE' ) {
    461461            $rss = $cache->get( $url );
    462             if ( $rss->etag and $rss->last_modified ) {
     462            if ( isset($rss->etag) and $rss->last_modified ) {
    463463                $request_headers['If-None-Match'] = $rss->etag;
    464464                $request_headers['If-Last-Modified'] = $rss->last_modified;
     
    565565
    566566    // if RSS parsed successfully
    567     if ( $rss && !$rss->ERROR) {
     567    if ( $rss && (!isset($rss->ERROR) || !$rss->ERROR) ) {
    568568
    569569        // find Etag, and Last-Modified
Note: See TracChangeset for help on using the changeset viewer.