Skip to content

Commit e993c26

Browse files
committed
#562 Fix images not showing on the reposition page
This was caused by 4364624.
1 parent 0872ac4 commit e993c26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ function customcert_pluginfile($course, $cm, $context, $filearea, $args, $forced
233233
$fullpath = '/' . $context->id . '/mod_customcert/image/' . $relativepath;
234234

235235
$fs = get_file_storage();
236-
if (!$file = $fs->get_file_by_hash(sha1($fullpath)) || $file->is_directory()) {
236+
$file = $fs->get_file_by_hash(sha1($fullpath));
237+
if (!$file || $file->is_directory()) {
237238
return false;
238239
}
239240

0 commit comments

Comments
 (0)