MDL-57486 tool_recyclebin: Close the files recordset properly
authorJun Pataleta <jun@moodle.com>
Wed, 30 May 2018 05:15:30 +0000 (13:15 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 30 May 2018 05:15:30 +0000 (13:15 +0800)
admin/tool/recyclebin/classes/category_bin.php

index f352de2..b08b6a5 100644 (file)
@@ -305,7 +305,7 @@ class category_bin extends base_bin {
                 $file = $fs->get_file_instance($filer);
                 $file->delete();
             }
-            $file->close();
+            $files->close();
         }
 
         // Delete the record.