Skip to content

Commit cb9494d

Browse files
committed
Merge branch 'MDL-59911-conv_cleanup_check-37' of git://github.com/leonstr/moodle into MOODLE_37_STABLE
2 parents 6fad97a + c4e1a15 commit cb9494d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

files/converter/unoconv/classes/converter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ public function serve_test_document() {
194194

195195
$conversions = conversion::get_conversions_for_file($testdocx, $format);
196196
foreach ($conversions as $conversion) {
197-
$conversion->delete();
197+
if ($conversion->get('id')) {
198+
$conversion->delete();
199+
}
198200
}
199201

200202
$conversion = new conversion(0, (object) [

0 commit comments

Comments
 (0)