Skip to content

Commit d22217d

Browse files
committed
Fix validation of the orientation of the file.
1 parent 4f97b1d commit d22217d

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)