### Eclipse Workspace Patch 1.0 #P CVS Index: backup/backup_scheduled.php =================================================================== RCS file: /cvsroot/moodle/moodle/backup/backup_scheduled.php,v retrieving revision 1.38.2.3 diff -u -r1.38.2.3 backup_scheduled.php --- backup/backup_scheduled.php 13 Apr 2008 01:34:06 -0000 1.38.2.3 +++ backup/backup_scheduled.php 14 May 2008 00:07:19 -0000 @@ -51,17 +51,18 @@ mtrace(" Getting admin info"); $admin = get_admin(); if (!$admin) { + mtrace(" Error: failed getting admin info"); $status = false; } - //Delete old_entries from backup tables if ($status) { + //Delete old_entries from backup tables mtrace(" Deleting old data"); - $status = backup_delete_old_data(); - } + if (!backup_delete_old_data()) { + mtrace(" Error: failed to delete old data"); + } - //Now we get a list of courses in the server - if ($status) { + //Now we get a list of courses in the server mtrace(" Checking courses"); //First of all, we delete everything from backup tables related to deleted courses mtrace(" Skipping deleted courses");