[BUGFIX] Fix wrong strlen check in DoubleMetaPhoneUtility 52/57252/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 17 Jun 2018 17:23:41 +0000 (19:23 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 18 Jun 2018 04:33:35 +0000 (06:33 +0200)
while (strlen($this->primary) < 4 || strlen($this->secondary < 4)) {

should be

while (strlen($this->primary) < 4 || strlen($this->secondary) < 4) {

Resolves: #85296
Releases: master,8.7
Change-Id: I1820218410538c095f3e3c907190726f8e970410
Reviewed-on: https://review.typo3.org/57252
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/indexed_search/Classes/Utility/DoubleMetaPhoneUtility.php

index 16a4fb5..bd8ac2a 100644 (file)
@@ -96,7 +96,7 @@ class DoubleMetaPhoneUtility
             $this->current++;
         }
         // main loop
-        while (strlen($this->primary) < 4 || strlen($this->secondary < 4)) {
+        while (strlen($this->primary) < 4 || strlen($this->secondary) < 4) {
             if ($this->current >= $this->length) {
                 break;
             }