Skip to content

Commit

Permalink
avoid warning on count. fixes lupo49#29
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Oct 14, 2020
1 parent 340f617 commit 296beef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (".
Expand Down

0 comments on commit 296beef

Please sign in to comment.