Commit 9ff2e086 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug #7544 General error: Download.php / Line: 175. Refs #7543

parent 003018ec
Pipeline #1261 passed with stage
in 1 minute and 38 seconds
......@@ -103,7 +103,7 @@ class Download {
*
* @return string - fileName of concatenated file
* @throws UserFormException
* @throws downloadException
* @throws DownloadException
*/
private function concatPdfFiles(array $files) {
......@@ -182,7 +182,7 @@ class Download {
*
* @param $file
* @param $outputFilename
* @throws downloadException
* @throws DownloadException
*/
private function outputFile($file, $outputFilename) {
......@@ -485,6 +485,12 @@ class Download {
break;
}
if ($filename != '' && !file_exists($filename)) {
throw new DownloadException(json_encode(
[ERROR_MESSAGE_TO_USER => 'Can\'t read file',
ERROR_MESSAGE_SUPPORT => "File: $filename"]), ERROR_IO_FILE_EXIST);
}
switch ($outputMode) {
case OUTPUT_MODE_FILE:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment