From: stronk7 Date: Thu, 20 May 2004 15:17:39 +0000 (+0000) Subject: Now scheduled bakup checks for required XML functions to work. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1029856e40dd3121c67db4ad03e23ef210430931;p=moodle.git Now scheduled bakup checks for required XML functions to work. Bug 1432 related. (http://moodle.org/bugs/bug.php?op=show&bugid=1432) --- 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();