Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9882b2c
)
backup MDL-24962 Automated backups now explicitly destroy the backup controller creat...
author
Sam Hemelryk
<sam@moodle.com>
Thu, 18 Nov 2010 01:35:16 +0000
(
01:35
+0000)
committer
Sam Hemelryk
<sam@moodle.com>
Thu, 18 Nov 2010 01:35:16 +0000
(
01:35
+0000)
backup/util/helper/backup_cron_helper.class.php
patch
|
blob
|
blame
|
history
diff --git
a/backup/util/helper/backup_cron_helper.class.php
b/backup/util/helper/backup_cron_helper.class.php
index
387cd47
..
6044872
100644
(file)
--- a/
backup/util/helper/backup_cron_helper.class.php
+++ b/
backup/util/helper/backup_cron_helper.class.php
@@
-354,11
+354,15
@@
abstract class backup_cron_automated_helper {
}
}
+ $outcome = true;
} catch (backup_exception $e) {
$bc->log('backup_auto_failed_on_course', backup::LOG_WARNING, $course->shortname);
-
return
false;
+
$outcome =
false;
}
+ $bc->destroy();
+ unset($bc);
+
return true;
}