X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FCase%2FXMLRepository.php;h=8e1853bd59ab750c75893ca54476b4e16b7397b6;hb=623f63244eddc5276b9d60eac381ea9fd89448ba;hp=61006f1699c9243b59e2c3fdcfa1f861e4dcdc2d;hpb=97b52bf88b5175c339592845ab061ad44b8ee812;p=civicrm-core.git diff --git a/CRM/Case/XMLRepository.php b/CRM/Case/XMLRepository.php index 61006f1699..8e1853bd59 100644 --- a/CRM/Case/XMLRepository.php +++ b/CRM/Case/XMLRepository.php @@ -22,7 +22,8 @@ class CRM_Case_XMLRepository { private static $singleton; /** - * @var array + * @var array + * */ protected $xml = []; @@ -93,7 +94,7 @@ class CRM_Case_XMLRepository { // throw new CRM_Core_Exception("Cannot load caseType with malformed name [$caseType]"); //} - if (!CRM_Utils_Array::value($caseType, $this->xml)) { + if (empty($this->xml[$caseType])) { $fileXml = $this->retrieveFile($caseType); if ($fileXml) { $this->xml[$caseType] = $fileXml;