From b216757863e333e79368cf93e46b023d08582c2b Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Wed, 23 Mar 2022 17:56:19 +0100 Subject: [PATCH] fix PHP 8 warning --- library/NotificationCenter/AutoSuggester.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/NotificationCenter/AutoSuggester.php b/library/NotificationCenter/AutoSuggester.php index 87c72abe..cafddd7a 100644 --- a/library/NotificationCenter/AutoSuggester.php +++ b/library/NotificationCenter/AutoSuggester.php @@ -42,7 +42,7 @@ public static function load($dc) static::$strType = static::$objNotification->type; foreach ($GLOBALS['TL_DCA'][static::$strTable]['fields'] as $field => $arrConfig) { - if ('nc_tokens' === $arrConfig['eval']['rgxp'] ?? null) { + if ('nc_tokens' === ($arrConfig['eval']['rgxp'] ?? null)) { $GLOBALS['TL_DCA'][static::$strTable]['fields'][$field]['wizard'][] = array('NotificationCenter\AutoSuggester', 'init'); } }