Skip to content

Commit 1bcc068

Browse files
committed
Do not try to pack null file
Signed-off-by: Michal Čihař <[email protected]>
1 parent 75cab87 commit 1bcc068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ShapeFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ private function _saveRecords() {
382382
$offset += (4 + $record->getContentLength());
383383
}
384384
}
385-
if ($do_dbase) {
385+
if ($do_dbase && !is_null($this->DBFFile)) {
386386
dbase_pack($this->DBFFile);
387387
}
388388
}

0 commit comments

Comments
 (0)