Skip to content
Snippets Groups Projects
Commit dd59b762 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings, closes #3488

Closes #3488

Merge request studip/studip!2383
parent 4c88ec23
No related branches found
No related tags found
No related merge requests found
......@@ -324,6 +324,9 @@ class Oer_EndpointsController extends StudipController
}
page_close();
if (!file_exists($this->material->getFilePath())) {
throw new Exception(_('Die gewünschte Datei konnte nicht gefunden werden.'));
}
$filesize = filesize($this->material->getFilePath());
header("Accept-Ranges: bytes");
$start = 0;
......
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