mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Fixes bug MDL-8059 "... won't restore - error A required parameter (id) was missing" (merged from HEAD).
This commit is contained in:
parent
3d5bd70fea
commit
fb6c31f207
1 changed files with 3 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue