Skip to content

Commit 49dd070

Browse files
committed
Fix Issue #58 Make handles optional when adding multiple files
1 parent 941be80 commit 49dd070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function __construct($pdf = null, $options = array())
107107
*/
108108
public function addFile($name, $handle = null, $password = null)
109109
{
110-
if ($handle===null) {
110+
if ($handle===null || is_numeric($handle)) {
111111
$handle = $this->nextHandle();
112112
}
113113
if ($name instanceof Pdf) {

0 commit comments

Comments
 (0)