Skip to content
Snippets Groups Projects
Commit 38906ef3 authored by David Siegfried's avatar David Siegfried
Browse files

fixes #4597

Closes #4597

Merge request studip/studip!3407
parent 4f5f6e67
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ class CoreDocuments extends CorePlugin implements StudipModule, OERModule
'description' => $material['description']
];
$url = $material->getDownloadUrl();
$tmp_name = null;
if ($url) {
if ($material['host_id']) {
$tmp_name = $GLOBALS['TMP_PATH'] . '/oer_' . $material->getId();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment