Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a problem when were deleted many files or a BIG directory

  • Loading branch information...
commit 45f15b5c943f26a3b50ac25c941b6cd690faa5b3 1 parent 6ec5d2c
bobopinna authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 mod/scorm/lib.php
4 mod/scorm/lib.php
@@ -372,8 +372,8 @@ function scorm_delete_files($directory)
372 372 {
373 373 if (is_dir($directory))
374 374 {
375   - $handle=opendir($directory);
376   - while (($file = readdir($handle)) != '')
  375 + $files=scandir($directory);
  376 + foreach($files as $file)
377 377 {
378 378 if ($file != '.' && $file != '..')
379 379 {

0 comments on commit 45f15b5

Please sign in to comment.
Something went wrong with that request. Please try again.