summaryrefslogtreecommitdiff
path: root/kohana/helpers/feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'kohana/helpers/feed.php')
-rw-r--r--kohana/helpers/feed.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/kohana/helpers/feed.php b/kohana/helpers/feed.php
index 53b1fd15..c1e0b81f 100644
--- a/kohana/helpers/feed.php
+++ b/kohana/helpers/feed.php
@@ -20,6 +20,10 @@ class feed_Core {
*/
public static function parse($feed, $limit = 0)
{
+ // Check if SimpleXML is installed
+ if( ! function_exists('simplexml_load_file'))
+ throw new Kohana_User_Exception('Feed Error', 'SimpleXML must be installed!');
+
// Make limit an integer
$limit = (int) $limit;