From 0f7c6f60cec995079376ecc9a189e465eeb31405 Mon Sep 17 00:00:00 2001 From: Laszlo Banfalvi Date: Sun, 6 Sep 2020 15:51:09 +0200 Subject: [PATCH] One step closer to 1.0 --- src/Eisodos/Parsers/SQLParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Eisodos/Parsers/SQLParser.php b/src/Eisodos/Parsers/SQLParser.php index 5a795e0..be07381 100755 --- a/src/Eisodos/Parsers/SQLParser.php +++ b/src/Eisodos/Parsers/SQLParser.php @@ -263,10 +263,10 @@ private function _runSQL($structureParameters_): string { ); } } - if (count($resultSet_['rows']) <= $a + 1) { + if (count($resultSet_['rows']) <= $a) { $row = false; } else { - $row = $resultSet_['rows'][$a + 1]; + $row = $resultSet_['rows'][$a]; } if (((integer)$structureParameters_["TABLECOLS"] > 0) and ($structureParameters_["TABLEROWEND"] !== "")) { if (($row===false)