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 29b3137..8239740 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();