Commit 0546b3ec authored by Carsten  Rose's avatar Carsten Rose
Browse files

Download.php: empty 'F:' will be skipped now.

parent c3fb580d
......@@ -246,7 +246,7 @@ class Evaluate {
// Flag to add DND JS code later on.
$this->store->setVar(SYSTEM_DRAG_AND_DROP_JS, 'true', STORE_SYSTEM);
// data-dnd-api="typo3conf/ext/qfq/qfq/api/dragAndDrop.php?s={{'U:form=<formnname>|s|r:8' AS _link}}"
// data-dnd-api="typo3conf/ext/qfq/qfq/api/dragAndDrop.php?s={{'U:form=<form name>[&paramX=<any value>]|s|r:8' AS _link}}"
return DND_DATA_DND_API . '="' . API_DIR . '/' . API_DRAG_AND_DROP_PHP . '?s=' . $s . '"';
}
......
......@@ -94,6 +94,9 @@ class Download {
*/
private function concatPdfFiles(array $files) {
// Remove empty entries. Might happen if there was no upload
$files = OnArray::removeEmptyElementsFromArray($files);
switch (count($files)) {
case 0:
return '';
......
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