aboutsummaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-10 21:43:53 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-10 21:43:53 +0200
commit42100a83223b93060eedc482eda94a890ee01e4a (patch)
treecf31ac7e6ff53bcd37f83f707d99f633c736b29a /app/models/Feed.php
parenta88e61ca1ed1fa1ff145aa1feae10e9529b778bd (diff)
Fix issue #40 : test des erreurs SimplePie
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index b619aaa97..da75ae8c8 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -128,6 +128,10 @@ class Feed extends Model {
$feed->set_cache_location (CACHE_PATH);
$feed->init ();
+ if ($feed->error()) {
+ throw new FeedException ($feed->error);
+ }
+
$subscribe_url = $feed->subscribe_url ();
if (!is_null ($subscribe_url) && $subscribe_url != $this->url) {
$this->_url ($subscribe_url);