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:
5b6db2c
)
CRM-14466 make sure element is initalized if empty to avoid php notice
author
Tyrell Cook
<tyrell@aghstrategies.com>
Wed, 30 Apr 2014 23:10:19 +0000
(19:10 -0400)
committer
Tyrell Cook
<tyrell@aghstrategies.com>
Wed, 30 Apr 2014 23:10:19 +0000
(19:10 -0400)
CRM/Utils/JSON.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/JSON.php
b/CRM/Utils/JSON.php
index 6e78112b059845ff14392229e5dff79e9327a3ef..098496b55846decdb919179705c67f6695432bd7 100644
(file)
--- a/
CRM/Utils/JSON.php
+++ b/
CRM/Utils/JSON.php
@@
-126,7
+126,10
@@
class CRM_Utils_JSON {
if ($addcomma) {
$sOutput .= ",";
}
-
+ //CRM-14466 --Make sure $value[$element] is defined to avoid php notice
+ if(!array_key_exists($element, $value)){
+ $value[$element] = "";
+ }
//CRM-7130 --lets addslashes to only double quotes,
//since we are using it to quote the field value.
//str_replace helps to provide a break for new-line