Permalink
Browse files

MDL-12037 - backup does not report errors correctly in backup_module(…

…) merged from HEAD
  • Loading branch information...
danmarsden
danmarsden committed May 13, 2008
1 parent 9eff824 commit e41839dc50fc70ef463ab9c52bf3a150bc135a78
Showing with 7 additions and 1 deletion.
  1. +7 −1 backup/backuplib.php
View
@@ -2282,7 +2282,13 @@ function backup_module($bf,$preferences,$module) {
if (function_exists($onemodbackup)) {
foreach ($preferences->mods[$module]->instances as $instance => $object) {
if (!empty($object->backup)) {
- $status = $onemodbackup($bf,$preferences,$instance);
+ $statusm = $onemodbackup($bf,$preferences,$instance);
+ if (!$statusm) {
+ if (!defined('BACKUP_SILENTLY')) {
+ notify('backup of '.$module.'-'.$object->name.' failed.');
+ }
+ $status = false;
+ }
}
}
} else {

0 comments on commit e41839d

Please sign in to comment.