mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
fixed warning when upload fails; merged from MOODLE_18_STABLE
This commit is contained in:
parent
a155f3784d
commit
e78d624f79
@ -199,6 +199,8 @@ class upload_manager {
|
||||
return true;
|
||||
}
|
||||
|
||||
$savedsomething = false;
|
||||
|
||||
if ($this->status) {
|
||||
if (!(strpos($destination, $CFG->dataroot) === false)) {
|
||||
// take it out for giving to make_upload_directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user