mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 17:14:28 +00:00
bugfix
This commit is contained in:
@@ -69,7 +69,6 @@ foreach($prestudent_ids as $pid)
|
||||
cleanUpAndDie($p->t('tools/studentWurdeNichtGefunden')."(".$pid.")", $tmpDir);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Get all Documents
|
||||
*/
|
||||
@@ -108,7 +107,6 @@ foreach($prestudent_ids as $pid)
|
||||
if($filename == "")
|
||||
continue;
|
||||
|
||||
|
||||
/*
|
||||
* Determine the filetype
|
||||
* and convert, if nessecary
|
||||
@@ -148,15 +146,14 @@ foreach($prestudent_ids as $pid)
|
||||
if(!$doc->create('pdf'))
|
||||
die($doc->errormsg);
|
||||
|
||||
$document = $doc->output(false);
|
||||
$filename = $tmpDir.'/'.uniqid();
|
||||
file_put_contents($filename, $document);
|
||||
file_put_contents($filename, $doc->output(false));
|
||||
$doc->close();
|
||||
$allDocs[] = $filename;
|
||||
$allDocs = array_merge($allDocs, $preDocs);
|
||||
unset($doc);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* generate the merged PDF
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user