[NFC] Fix PHP 7.4 Syntax issue in Afform HTML Extension
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 31 Jan 2021 23:39:35 +0000 (10:39 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 31 Jan 2021 23:39:35 +0000 (10:39 +1100)
ext/afform/core/CRM/Afform/ArrayHtml.php

index 464363f5bf691174c3ac3ac0f92a521bbc71d063..1ff7c703f9ac9409a0c884e7a5f747c931dd9915 100644 (file)
@@ -105,7 +105,7 @@ class CRM_Afform_ArrayHtml {
 
     $buf = $indent . '<' . $tag;
     foreach ($array as $attrName => $attrValue) {
-      if ($attrName{0} === '#') {
+      if ($attrName[0] === '#') {
         continue;
       }
       if (!preg_match('/^[a-zA-Z0-9\-]+$/', $attrName)) {