From 2f29ee130c241cecda3ce8bd184dc3b06fbcef31 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 20 May 2004 15:19:19 +0000 Subject: [PATCH] Now scheduled bakup checks for required XML functions to work. Bug 1432. Closed now... :-) (http://moodle.org/bugs/bug.php?op=show&bugid=1432) --- rss/rsslib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rss/rsslib.php b/rss/rsslib.php index 6e9d56da07..e9d82c542b 100644 --- a/rss/rsslib.php +++ b/rss/rsslib.php @@ -40,6 +40,12 @@ function cron_rss_feeds () { echo " Generating rssfeeds...\n"; + //Check for required functions... + if(!function_exists('utf8_encode')) { + echo " ERROR: You need to add XML support to your PHP installation!\n"; + return true; + } + if ($allmods = get_records("modules") ) { foreach ($allmods as $mod) { echo ' '.$mod->name.': '; -- 2.39.5