Skip to content

Commit

Permalink
MDL-18066 import_backup_file_silently - reverting last commit. Merged…
Browse files Browse the repository at this point in the history
… from 19_STABLE
  • Loading branch information
stronk7 committed Jan 30, 2009
1 parent 7a3f6bd commit 8f7bd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/lib.php
Original file line number Diff line number Diff line change
@@ -497,7 +497,7 @@ function backup_file2data ($file,&$data) {
function import_backup_file_silently($pathtofile,$destinationcourse,$emptyfirst=false,$userdata=false, $preferences=array()) {
global $CFG,$SESSION,$USER, $DB; // is there such a thing on cron? I guess so..
global $restore; // ick
if (empty($USER) || empty($USER->id)) {
if (empty($USER)) {
session_set_user(get_admin());
$USER->admin = 1; // not sure why, but this doesn't get set
}

0 comments on commit 8f7bd45

Please sign in to comment.