From 1029856e40dd3121c67db4ad03e23ef210430931 Mon Sep 17 00:00:00 2001
From: stronk7 <stronk7>
Date: Thu, 20 May 2004 15:17:39 +0000
Subject: [PATCH] Now scheduled bakup checks for required XML functions to
 work. Bug 1432 related. (http://moodle.org/bugs/bug.php?op=show&bugid=1432)

---
 backup/backup_scheduled.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/backup/backup_scheduled.php b/backup/backup_scheduled.php
index 29b31379d7..82397401ca 100644
--- a/backup/backup_scheduled.php
+++ b/backup/backup_scheduled.php
@@ -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();
 
-- 
2.39.5