[BUGFIX] Fix typo of variable 32/34532/2
authorAndreas Fernandez <andreas.fernandez@aspedia.de>
Mon, 24 Nov 2014 09:21:40 +0000 (10:21 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 24 Nov 2014 09:32:09 +0000 (10:32 +0100)
$numRows got mixed up with $numrows which could lead to
invalid SQL statements.

Resolves: #63281
Releases: master, 6.2
Change-Id: I209b41d3f502841b74fac7f047aa68a3e45bf271
Reviewed-on: http://review.typo3.org/34532
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php

index 7ef99a4..b813a55 100644 (file)
@@ -164,7 +164,7 @@ class AdodbPreparedStatement extends \TYPO3\CMS\Dbal\Database\DatabaseConnection
                                // If there are two parameters, do mapping differently than otherwise:
                                $numRows = $splitLimit[1];
                                $offset = $splitLimit[0];
-                               $limit = $numrows . ' OFFSET ' . $offset;
+                               $limit = $numRows . ' OFFSET ' . $offset;
                        }
                }
                if ($limit !== '') {