projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a51d6c
)
PHP 8.x: fix TypeError in config hook
author
Mathieu Lu
<mathieu@symbiotic.coop>
Thu, 2 Nov 2023 19:50:41 +0000
(15:50 -0400)
committer
Mathieu Lutfy
<mathieu@bidon.ca>
Thu, 2 Nov 2023 19:50:41 +0000
(15:50 -0400)
CRM/Utils/Hook.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Hook.php
b/CRM/Utils/Hook.php
index e96b976ce4f467e71d8f7fb052302921053fabda..00e82f3602f75551e9662391e5570ac2cd4c2c21 100644
(file)
--- a/
CRM/Utils/Hook.php
+++ b/
CRM/Utils/Hook.php
@@
-1487,7
+1487,7
@@
abstract class CRM_Utils_Hook {
$count++;
}
$defaultFlags = ['civicrm' => FALSE, 'uf' => FALSE, 'instances' => $count];
- $flags =
array_merge($defaultFlags, $flags)
;
+ $flags =
!empty($flags) ? array_merge($defaultFlags, $flags) : $defaultFlags
;
$null = NULL;
return self::singleton()->invoke(['config', 'flags'], $config,
$flags, $null, $null, $null, $null,