Skip to content
Permalink
Browse files

MDL-34872 Backup: Backup does not fail when a user is deleted

  • Loading branch information...
FMCorz committed Aug 14, 2012
1 parent 87e9331 commit 928928490db086a5b38c133f840e52a8c70470ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/moodle2/backup_stepslib.php
@@ -1835,7 +1835,7 @@ protected function define_execution() {
'backupid' => $this->get_backupid(), 'itemname' => 'userfinal'));
foreach ($rs as $record) {
$userid = $record->itemid;
$userctx = context_user::instance($userid);
$userctx = context_user::instance($userid, IGNORE_MISSING);
if (!$userctx) {
continue; // User has not context, sure it's a deleted user, so cannot have files
}

0 comments on commit 9289284

Please sign in to comment.
You can’t perform that action at this time.