Merge branch 'MDL-59911-conv_cleanup_check' of git://github.com/leonstr/moodle

This commit is contained in:
Andrew Nicols 2019-07-18 08:25:07 +08:00
commit 201c689b20

View File

@ -194,7 +194,9 @@ class converter implements \core_files\converter_interface {
$conversions = conversion::get_conversions_for_file($testdocx, $format);
foreach ($conversions as $conversion) {
$conversion->delete();
if ($conversion->get('id')) {
$conversion->delete();
}
}
$conversion = new conversion(0, (object) [