mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-59911-conv_cleanup_check' of git://github.com/leonstr/moodle
This commit is contained in:
commit
201c689b20
@ -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) [
|
||||
|
Loading…
x
Reference in New Issue
Block a user