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

Commit d12486e

Browse files
authored
Merge pull request #40 from Dakror/backward-compat-5.4
Fix for PHP 5.4 in ExportDocument
2 parents 1db0994 + dd63a2a commit d12486e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/ExportDocument.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ public function getExportDocumentClass_v2() {
386386
if(! is_array($this->getExportDocPosition()))
387387
$class->ExportDocPosition = $this->getExportDocPosition()->getExportDocPositionClass_v2();
388388
else {
389-
foreach($this->getExportDocPosition() as $key => &$exportDoc)
389+
$pos = $this->getExportDocPosition();
390+
foreach($pos as $key => &$exportDoc)
390391
$class->ExportDocPosition[$key] = $exportDoc->getExportDocPositionClass_v2();
391392
}
392393
}

0 commit comments

Comments
 (0)