From 0d217d2820984b585f3c2fa387108c1f9e2d2afb Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 30 Jan 2009 13:17:55 +0000 Subject: [PATCH] MDL-18066 import_backup_file_silently - reverting last commit. --- backup/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/lib.php b/backup/lib.php index 43df2ef5ee1..62d8ca575b0 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -649,7 +649,7 @@ function import_backup_file_silently($pathtofile,$destinationcourse,$emptyfirst=false,$userdata=false, $preferences=array()) { global $CFG,$SESSION,$USER; // is there such a thing on cron? I guess so.. global $restore; // ick - if (empty($USER) || empty($USER->id)) { + if (empty($USER)) { $USER = get_admin(); $USER->admin = 1; // not sure why, but this doesn't get set }