Permalink
Browse files

Bug #16986 Fatal error on XML_Feed_Parser_RSS2::getEntryById()

  • Loading branch information...
1 parent a58f74f commit b4277fe47829c4208acfde9e06bb462031b3a5ca @CloCkWeRX CloCkWeRX committed Dec 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 XML/Feed/Parser/RSS2.php
View
@@ -149,7 +149,7 @@ function getEntryById($id)
$entries = $this->xpath->query("//item[guid='$id']");
if ($entries->length > 0) {
- $entry = new $this->itemElement($entries->item(0), $this);
+ $entry = new XML_Feed_Parser_RSS2Element($entries->item(0), $this);
if (in_array('evaluate', get_class_methods($this->xpath))) {
$offset = $this->xpath->evaluate("count(preceding-sibling::item)", $entries->item(0));
$this->entries[$offset] = $entry;

0 comments on commit b4277fe

Please sign in to comment.