Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from Dakror/backward-compat-5.4
Browse files Browse the repository at this point in the history
Fix for PHP 5.4 in ExportDocument
  • Loading branch information
Petschko committed Feb 3, 2018
2 parents 1db0994 + dd63a2a commit d12486e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/ExportDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ public function getExportDocumentClass_v2() {
if(! is_array($this->getExportDocPosition()))
$class->ExportDocPosition = $this->getExportDocPosition()->getExportDocPositionClass_v2();
else {
foreach($this->getExportDocPosition() as $key => &$exportDoc)
$pos = $this->getExportDocPosition();
foreach($pos as $key => &$exportDoc)
$class->ExportDocPosition[$key] = $exportDoc->getExportDocPositionClass_v2();
}
}
Expand Down

0 comments on commit d12486e

Please sign in to comment.