Skip to content

Commit 05471ce

Browse files
added null index checking
1 parent b01aa34 commit 05471ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Convertor.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private function end( $parser, $name )
220220
);
221221
}
222222
foreach ($this->row as $n=>&$v) {
223-
if (($v=='') && ($this->tableFields['null'][$n]===true)) {
223+
if (( $v == '' ) && ( isset( $this->tableFields['null'] ) ) && ( $this->tableFields['null'][$n] === true )) {
224224
$v = 'NULL';
225225
} else {
226226
$v = "'".pg_escape_string($v)."'";

0 commit comments

Comments
 (0)