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

backup/backup_scheduled.php

index 29b31379d713dffbafd70330b099534ecd12884b..82397401ca6a7881bb63b10023b97a08219e93f0 100644 (file)
@@ -11,6 +11,12 @@ function schedule_backup_cron() {
 
     $emailpending = false;
 
+    //Check for required functions...
+    if(!function_exists('utf8_encode')) {
+        echo "        ERROR: You need to add XML support to your PHP installation!\n";
+        return true;
+    }
+
     //Get now
     $now = time();