Merge pull request #240 from Riduidel/Freenews_v_2.0

Encore ce fameux problème de SimpleXMLElement
This commit is contained in:
Mitsu 2016-03-28 22:47:51 +02:00
commit dca001dffc

View file

@ -28,9 +28,9 @@ class Freenews extends RssExpander {
$item->title = trim($newsItem->title);
// $this->message("item has for title \"".$item->title."\"");
if(empty($newsItem->guid)) {
$item->uri = $newsItem->link;
$item->uri = (string) $newsItem->link;
} else {
$item->uri = $newsItem->guid;
$item->uri = (string) $newsItem->guid;
}
// now load that uri from cache
// $this->message("now loading page ".$item->uri);