Skip to content

Commit cc87a04

Browse files
authored
Merge pull request #1 from apocsve/master
Fix validation of the orientation of the file.
2 parents 4f97b1d + d22217d commit cc87a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PDFMerger/PDFMerger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function merge($orientation = 'P') {
196196
$oFPDI = $this->oFPDI;
197197

198198
$this->aFiles->each(function($file) use($oFPDI, $orientation){
199-
$file['orientation'] = !is_null($file['orientation'])?$orientation:$file['orientation'];
199+
$file['orientation'] = is_null($file['orientation'])?$orientation:$file['orientation'];
200200
$count = $oFPDI->setSourceFile($file['name']);
201201
if ($file['pages'] == 'all') {
202202

@@ -220,4 +220,4 @@ public function merge($orientation = 'P') {
220220
}
221221
});
222222
}
223-
}
223+
}

0 commit comments

Comments
 (0)