diff --git a/syntax.php b/syntax.php index c2df3ca..4aa1999 100644 --- a/syntax.php +++ b/syntax.php @@ -456,7 +456,7 @@ function _parseColumnNames() { } } $this->cols = $newCols; - if(count($this->opts ["hdrs"]) != count($this->cols)) { + if(isset($this->opts["hdrs"]) && count($this->opts["hdrs"]) != count($this->cols)) { $this->_showDebugMsg( "The number of specified headers (".count($this->opts ["hdrs"]). ") is not equal to the number of specified columns (".