mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Bug in backup_getid cause return record when no record
must be returned. Solved.
This commit is contained in:
parent
6e0470a646
commit
783ab2b07c
@ -414,10 +414,13 @@
|
||||
$status = false;
|
||||
}
|
||||
} else {
|
||||
////First strip slashes
|
||||
$temp = stripslashes($status->info);
|
||||
//Now unserialize
|
||||
$status->info = unserialize($temp);
|
||||
//Only if status (record exists)
|
||||
if ($status) {
|
||||
////First strip slashes
|
||||
$temp = stripslashes($status->info);
|
||||
//Now unserialize
|
||||
$status->info = unserialize($temp);
|
||||
}
|
||||
}
|
||||
|
||||
return $status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user