Merge pull request #19588 from MegaphoneJon/core-2379
[civicrm-core.git] / Civi / Core / Paths.php
index 89b433679a90b42125d156ac864be853b0415b07..aaab990d388d2c86fcf79271a9a675b461326be6 100644 (file)
@@ -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];
     }
@@ -243,7 +243,7 @@ class Paths {
     }
 
     $defaultContainer = self::DEFAULT_URL;
-    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[3];
     }