From 102a790c44b1517bf112dc777f128b296681eda9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Apr 2021 09:55:11 +0200 Subject: [PATCH] fix und PHP 8 no longer supported curly braces for array/string indexes --- setup/inc/hook_config_validate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/inc/hook_config_validate.inc.php b/setup/inc/hook_config_validate.inc.php index c79fa1b1d5..fc08c9f025 100644 --- a/setup/inc/hook_config_validate.inc.php +++ b/setup/inc/hook_config_validate.inc.php @@ -217,5 +217,5 @@ function ldap_search_filter(&$settings) { $filter =& $settings['ldap_search_filter']; - if ($filter && $filter{0} != '(') $filter = '('.$filter.')'; + if ($filter && $filter[0] != '(') $filter = '('.$filter.')'; }