Merge pull request #14851 from eileenmcnaughton/tt
[civicrm-core.git] / CRM / Event / Page / Tab.php
index d2d4db40c829dfa1479b882cd76a63b3a0ef1ecb..dadc9244d9e63d211764828eb067308d607b6a55 100644 (file)
@@ -58,9 +58,9 @@ class CRM_Event_Page_Tab extends CRM_Core_Page {
       $this->assign('displayName', $displayName);
       $this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent('participant', $this->_contactId);
       // Refresh other tabs with related data
-      $this->ajaxResponse['updateTabs'] = array(
+      $this->ajaxResponse['updateTabs'] = [
         '#tab_activity' => CRM_Contact_BAO_Contact::getCountComponent('activity', $this->_contactId),
-      );
+      ];
       if (CRM_Core_Permission::access('CiviContribute')) {
         $this->ajaxResponse['updateTabs']['#tab_contribute'] = CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId);
       }