|
@@ -51,14 +51,10 @@ class FeedItem_RSS extends FeedItem_Common {
|
|
|
}
|
|
|
|
|
|
function get_title() {
|
|
|
- $titles = $this->elem->getElementsByTagName("title");
|
|
|
+ $title = $this->xpath->query("title", $this->elem)->item(0);
|
|
|
|
|
|
- foreach ($titles as $title) {
|
|
|
- $nv = trim($title->nodeValue);
|
|
|
-
|
|
|
- if (!empty($nv)) {
|
|
|
- return $nv;
|
|
|
- }
|
|
|
+ if ($title) {
|
|
|
+ return trim($title->nodeValue);
|
|
|
}
|
|
|
}
|
|
|
|