diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-31 23:40:22 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-31 23:40:22 -0400 |
commit | eca49d72c47eb9b59cb3192f24a442d4d3303092 (patch) | |
tree | 70bf63e7cf73fa3642c55b750972273973579cb6 /lib/utils.php | |
parent | 44510977870d854196a28c644a7b61c7bbe55e6f (diff) |
news app welcomes the new settings popup
Diffstat (limited to 'lib/utils.php')
-rw-r--r-- | lib/utils.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/utils.php b/lib/utils.php index cc3b6aa09..ce7712e9a 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -30,6 +30,8 @@ class OC_News_Utils { return null; } + //I understand this try-catch sucks, but SimplePie gives weird errors sometimes + try { $spfeed->handle_content_type(); $title = $spfeed->get_title(); @@ -57,7 +59,10 @@ class OC_News_Utils { $feed->setFavicon($webFavicon); } return $feed; - + } + catch (Exception $e) { + return null; + } } public static function checkFavicon($favicon) { |