From 543c1a2d4f7f91d87b4f85f06e13640a037db2e7 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 6 Jan 2021 16:51:18 -0500 Subject: [PATCH] php 74 compat --- Civi/Core/Paths.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Core/Paths.php b/Civi/Core/Paths.php index 89b433679a..b35e11e14c 100644 --- a/Civi/Core/Paths.php +++ b/Civi/Core/Paths.php @@ -200,7 +200,7 @@ class Paths { } $defaultContainer = self::DEFAULT_PATH; - if ($value && $value{0} == '[' && preg_match(';^\[([a-zA-Z0-9\._]+)\]/(.*);', $value, $matches)) { + if ($value && $value[0] == '[' && preg_match(';^\[([a-zA-Z0-9\._]+)\]/(.*);', $value, $matches)) { $defaultContainer = $matches[1]; $value = $matches[2]; } -- 2.25.1