Merge pull request #19588 from MegaphoneJon/core-2379
[civicrm-core.git] / Civi / Core / Paths.php
index b35e11e14cee6e2a25bba04bdb05786e415a307a..aaab990d388d2c86fcf79271a9a675b461326be6 100644 (file)
@@ -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];
     }