fixed warning when upload fails; merged from MOODLE_18_STABLE

This commit is contained in:
skodak 2007-04-02 14:57:56 +00:00
parent a155f3784d
commit e78d624f79

View File

@ -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