diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-30 15:38:58 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-30 15:38:58 -0400 |
commit | eda7f50864cd4e92b8541065e6ec0fa1f7d990ec (patch) | |
tree | e272b45e29ffa8cff434234e96b7cfcd41fcc34a /ajax/updatefeed.php | |
parent | 25051024bc3609ead82bddee50ddf129f6aa535f (diff) |
fixes what broke in the last commit
Diffstat (limited to 'ajax/updatefeed.php')
-rw-r--r-- | ajax/updatefeed.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ajax/updatefeed.php b/ajax/updatefeed.php index f503d9e91..fe286d3c1 100644 --- a/ajax/updatefeed.php +++ b/ajax/updatefeed.php @@ -23,8 +23,12 @@ $folderid = $_POST['folderid']; $newfeed = OC_News_Utils::fetch($feedurl); -$feedmapper = new OC_News_FeedMapper(); -$newfeedid = $feedmapper->save($newfeed, $folderid); +$newfeedid = false; + +if ($newfeed !== null) { + $feedmapper = new OC_News_FeedMapper(); + $newfeedid = $feedmapper->save($newfeed, $folderid); +} $l = OC_L10N::get('news'); |