From fb6c31f2072aef8ca7c8e6624ce32db39c79a19c Mon Sep 17 00:00:00 2001 From: nfreear Date: Fri, 16 Feb 2007 15:55:34 +0000 Subject: [PATCH] Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing" (merged from HEAD). --- backup/backuplib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backup/backuplib.php b/backup/backuplib.php index f00eafadac4..42da4b0811e 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -213,9 +213,10 @@ //Extracts user id from file path $tok = strtok($dir,"/"); if ($tok) { - $userid = $tok; + $userid = $tok; } else { - $tok = ""; + //We were getting $dir='0', so continue (WAS: $tok = "";) + continue; } //Look it is a backupable user $data = get_record ("backup_ids","backup_code","$backup_unique_code",