Changeset 5134

Show
Ignore:
Timestamp:
02/01/07 11:57:51 (2 years ago)
Author:
bergie
Message:

Handle broken feeds a bit better

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net.nemein.rss/fetch.php

    r4827 r5134  
    113113        debug_push_class(__CLASS__, __FUNCTION__); 
    114114        $items = $this->fetch(); 
     115         
     116        if (count($items) == 0) 
     117        { 
     118            // This feed didn't return any items, skip 
     119            return array(); 
     120        } 
    115121         
    116122        // Reverse items so that creation times remain in correct order even for feeds without timestamps 
     
    291297            return false; 
    292298        } 
    293      
     299 
    294300        // Create array of item GUIDs 
    295301        $item_guids = array();