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:
3a32761
)
Don't lose keys with empty values when flattening array
author
Aidan Saunders
<aidan.saunders@squiffle.uk>
Wed, 15 Aug 2018 19:24:36 +0000
(20:24 +0100)
committer
Aidan Saunders
<aidan.saunders@squiffle.uk>
Thu, 29 Nov 2018 13:27:53 +0000
(13:27 +0000)
CRM/Utils/Array.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Array.php
b/CRM/Utils/Array.php
index 73b4dab45a2246c496b093d7e8b2499c8be32f6d..dbcb100e16e37312797e31dc46b2296295e9ff2d 100644
(file)
--- a/
CRM/Utils/Array.php
+++ b/
CRM/Utils/Array.php
@@
-238,9
+238,7
@@
class CRM_Utils_Array {
self::flatten($value, $flat, $newPrefix, $seperator);
}
else {
- if (!empty($value)) {
- $flat[$newPrefix] = $value;
- }
+ $flat[$newPrefix] = $value;
}
}
}