mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-27559-master-v2' of https://github.com/mackensen/moodle
This commit is contained in:
commit
7df271d9b3
6 changed files with 26 additions and 8 deletions
|
@ -2535,7 +2535,10 @@ function fulldelete($location) {
|
|||
return false;
|
||||
}
|
||||
if (is_dir($location)) {
|
||||
$currdir = opendir($location);
|
||||
|
||||
if (!$currdir = opendir($location)) {
|
||||
return false;
|
||||
}
|
||||
while (false !== ($file = readdir($currdir))) {
|
||||
if ($file <> ".." && $file <> ".") {
|
||||
$fullfile = $location."/".$file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue