removed code
authorTyrell Cook <tyrell@aghstrategies.com>
Wed, 30 Apr 2014 23:31:49 +0000 (19:31 -0400)
committerTyrell Cook <tyrell@aghstrategies.com>
Wed, 30 Apr 2014 23:31:49 +0000 (19:31 -0400)
CRM/Utils/JSON.php

index 098496b55846decdb919179705c67f6695432bd7..a779e30b995894af353d041bdc4ac59104083370 100644 (file)
@@ -126,10 +126,6 @@ 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