projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #17197 from eileenmcnaughton/act_r_test
[civicrm-core.git]
/
CRM
/
Case
/
XMLRepository.php
diff --git
a/CRM/Case/XMLRepository.php
b/CRM/Case/XMLRepository.php
index 61006f1699c9243b59e2c3fdcfa1f861e4dcdc2d..8e1853bd59ab750c75893ca54476b4e16b7397b6 100644
(file)
--- a/
CRM/Case/XMLRepository.php
+++ b/
CRM/Case/XMLRepository.php
@@
-22,7
+22,8
@@
class CRM_Case_XMLRepository {
private static $singleton;
/**
private static $singleton;
/**
- * @var array<String,SimpleXMLElement>
+ * @var array
+ * <String,SimpleXMLElement>
*/
protected $xml = [];
*/
protected $xml = [];
@@
-93,7
+94,7
@@
class CRM_Case_XMLRepository {
// throw new CRM_Core_Exception("Cannot load caseType with malformed name [$caseType]");
//}
// 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;
$fileXml = $this->retrieveFile($caseType);
if ($fileXml) {
$this->xml[$caseType] = $fileXml;