We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9194b28 commit a714897Copy full SHA for a714897
src/ShapeFile.php
@@ -525,7 +525,7 @@ private function _closeSHXFile()
525
*/
526
private function _createDBFFile()
527
{
528
- if (!self::supports_dbase() || count($this->DBFHeader) == 0) {
+ if (!self::supports_dbase() || !is_array($this->DBFHeader) || count($this->DBFHeader) == 0) {
529
$this->DBFFile = null;
530
531
return true;
0 commit comments