]> git.mjollnir.org Git - moodle.git/commitdiff
Now scheduled bakup checks for required XML functions to work.
authorstronk7 <stronk7>
Thu, 20 May 2004 15:19:19 +0000 (15:19 +0000)
committerstronk7 <stronk7>
Thu, 20 May 2004 15:19:19 +0000 (15:19 +0000)
Bug 1432. Closed now... :-)
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)

rss/rsslib.php

index 6e9d56da07e886fd042bbffdf708e447064ef32f..e9d82c542bf002990ed32e09bca77f918f927ff0 100644 (file)
@@ -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.': ';