Skip to content

Commit

Permalink
MDL-15094 fixed regression
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 4, 2008
1 parent 8f15f8e commit a4e315c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backup/backuplib.php
Expand Up @@ -2350,7 +2350,7 @@ function backup_copy_user_files ($preferences) {
$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);
Expand Down
2 changes: 1 addition & 1 deletion backup/lib.php
Expand Up @@ -488,7 +488,7 @@ function backup_putid($backup_unique_code, $table, $old_id, $new_id, $info="") {
//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
Expand Down

0 comments on commit a4e315c

Please sign in to comment.