Merge branch 'MDL-27559-master-v2' of https://github.com/mackensen/moodle

This commit is contained in:
Sam Hemelryk 2012-06-06 08:51:11 +12:00
commit 7df271d9b3
6 changed files with 26 additions and 8 deletions

View file

@ -79,7 +79,9 @@ abstract class backup_general_helper extends backup_helper {
return array();
}
$dir = opendir($path);
if (!$dir = opendir($path)) {
return array();
}
while (false !== ($file = readdir($dir))) {
if ($file == '.' || $file == '..') { // Skip dots
continue;