[BUGFIX] Fix wrong strlen check in DoubleMetaPhoneUtility 54/57254/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:57:34 +0000 (06:57 +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/57254
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/indexed_search/Classes/Utility/DoubleMetaPhoneUtility.php

index 0c665f2..7010954 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;
             }