mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 15:32:32 +02:00
MDL-15094 fixed regression
This commit is contained in:
parent
8f15f8ec2d
commit
a4e315c6d5
@ -2350,7 +2350,7 @@
|
||||
$status = check_and_create_user_files_dir($preferences->backup_unique_code);
|
||||
//now get a list of users that we need for this backup.
|
||||
$backup_users = $DB->get_recordset("backup_ids",
|
||||
array('backup_code'=>$preferences->backup_unique_code, array('table_name'=>'user'), "", "id, old_id"));
|
||||
array('backup_code'=>$preferences->backup_unique_code, 'table_name'=>'user'), "", "id, old_id");
|
||||
foreach ($backup_users as $user) {
|
||||
//If this user's directory exists, copy it
|
||||
$userdir = make_user_directory($user->old_id, true);
|
||||
|
@ -488,7 +488,7 @@
|
||||
//If the info field is "infile" then the file is deleted too
|
||||
function backup_delid ($backup_unique_code, $table, $old_id) {
|
||||
global $DB;
|
||||
return $DB->delete_records('backup_ids', array('backup_code'=>$backup_unique_code, '$table_name'=>$table, 'old_id'=>$old_id));
|
||||
return $DB->delete_records('backup_ids', array('backup_code'=>$backup_unique_code, 'table_name'=>$table, 'old_id'=>$old_id));
|
||||
}
|
||||
|
||||
//This function is used to get a record from the backup_ids table
|
||||
|
Loading…
x
Reference in New Issue
Block a user