From 18b851ba2c023f98093242229ba82f49c932c491 Mon Sep 17 00:00:00 2001
From: enured <enis.nuredini@uzh.ch>
Date: Fri, 14 Jul 2023 18:12:55 +0200
Subject: [PATCH] B16616: Changed check method 2. refs#16616

---
 extension/Classes/Core/Form/TypeAhead.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extension/Classes/Core/Form/TypeAhead.php b/extension/Classes/Core/Form/TypeAhead.php
index 4f2db5feb..a40204722 100644
--- a/extension/Classes/Core/Form/TypeAhead.php
+++ b/extension/Classes/Core/Form/TypeAhead.php
@@ -71,7 +71,7 @@ class TypeAhead {
 
         // Check for an optional given dbIndex: '[<int>]SELECT ...'
         $sql = $sipVars[FE_TYPEAHEAD_SQL] ?? '';
-        if ($sql[0] ?? '' === '[') {
+        if (($sql[0] ?? '') === '[') {
             $pos = strpos($sql, ']');
             $dbIndex = substr($sql, 1, $pos - 1);
             $sipVars[FE_TYPEAHEAD_SQL] = substr($sql, $pos + 1);
-- 
GitLab