17,7 → 17,7 |
* @author James Stewart <james@jystewart.net> |
* @copyright 2005 James Stewart <james@jystewart.net> |
* @license http://www.gnu.org/copyleft/lesser.html GNU LGPL 2.1 |
* @version CVS: $Id: Type.php,v 1.2 2007-07-25 15:05:34 jp_milcent Exp $ |
* @version CVS: $Id: Type.php,v 1.3 2008-09-30 15:21:39 alexandre_tb Exp $ |
* @link http://pear.php.net/package/XML_Feed_Parser/ |
*/ |
|
195,7 → 195,9 |
$this->entries[$offset] = new $this->itemClass( |
$entries->item($offset), $this, $xmlBase); |
if ($id = $this->entries[$offset]->id) { |
$this->idMappings[$id] = $this->entries[$offset]; |
$id_mappings = $this->idMappings; |
$id_mappings[$id] = $this->entries[$offset]; |
$this->idMappings = $id_mappings; |
} |
} else { |
throw new XML_Feed_Parser_Exception('No entries found'); |