Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b4277fe47829c4208acfde9e06bb462031b3a5ca 1 parent a58f74f
@CloCkWeRX CloCkWeRX authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  XML/Feed/Parser/RSS2.php
View
2  XML/Feed/Parser/RSS2.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.