From b9634e03baa89b5b9e9bccc8035a6e0642b5b76f Mon Sep 17 00:00:00 2001 From: Oliver Bartsch <bo@cedev.de> Date: Mon, 5 Aug 2019 13:40:20 +0200 Subject: [PATCH] [BUGFIX] Fix typo in QueryView This fixes a typo in a variable in QueryView. Resolves: #88920 Releases: master, 9.5 Change-Id: I59b4034931b3f8837aef6dda0c56e342c3552926 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61441 Tested-by: Stefan P <spo@snk.de> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Stefan P <spo@snk.de> Reviewed-by: Joerg Kummer <typo3@enobe.de> Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> --- typo3/sysext/core/Classes/Database/QueryView.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/core/Classes/Database/QueryView.php b/typo3/sysext/core/Classes/Database/QueryView.php index 2e3b56569753..ebee236bedb3 100644 --- a/typo3/sysext/core/Classes/Database/QueryView.php +++ b/typo3/sysext/core/Classes/Database/QueryView.php @@ -622,11 +622,11 @@ class QueryView $queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class)); $queryBuilder->count('*')->from($table); $likes = []; - $excapedLikeString = '%' . $queryBuilder->escapeLikeWildcards($swords) . '%'; + $escapedLikeString = '%' . $queryBuilder->escapeLikeWildcards($swords) . '%'; foreach ($fields as $field) { $likes[] = $queryBuilder->expr()->like( $field, - $queryBuilder->createNamedParameter($excapedLikeString, \PDO::PARAM_STR) + $queryBuilder->createNamedParameter($escapedLikeString, \PDO::PARAM_STR) ); } $count = $queryBuilder->orWhere(...$likes)->execute()->fetchColumn(0); @@ -641,7 +641,7 @@ class QueryView foreach ($fields as $field) { $likes[] = $queryBuilder->expr()->like( $field, - $queryBuilder->createNamedParameter($excapedLikeString, \PDO::PARAM_STR) + $queryBuilder->createNamedParameter($escapedLikeString, \PDO::PARAM_STR) ); } $statement = $queryBuilder->orWhere(...$likes)->execute(); -- GitLab