From 9f04fef3e046d7b4778ddf449589c9b1a3a67857 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 30 Mar 2009 18:09:17 +0000 Subject: Updated to r807 --- kohana/helpers/feed.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kohana/helpers/feed.php') 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; -- cgit v1.2.3