X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FPayment%2FPropertyBag.php;h=6cea55241e7ec38f40ffe0c4bf99e3b59f018e1f;hb=ee4ac4e666956c3255b24525be6fc992760513a8;hp=afdee0abb6908da4660426ea60a30a8cbfd84ce5;hpb=4d5b93c3343c75c9881a7b1193ffbf33b1e6439a;p=civicrm-core.git diff --git a/Civi/Payment/PropertyBag.php b/Civi/Payment/PropertyBag.php index afdee0abb6..6cea55241e 100644 --- a/Civi/Payment/PropertyBag.php +++ b/Civi/Payment/PropertyBag.php @@ -22,7 +22,9 @@ use CRM_Core_PseudoConstant; */ class PropertyBag implements \ArrayAccess { /** - * @var array - see legacyWarning */ + * @var array + * - see legacyWarning + */ public static $legacyWarnings = []; protected $props = ['default' => []]; @@ -278,9 +280,9 @@ class PropertyBag implements \ArrayAccess { * @param array $data */ public function mergeLegacyInputParams($data) { - $this->legacyWarning("We have merged input params into the property bag for now but please rewrite code to not use this."); + $this->legacyWarning('We have merged input params into the property bag for now but please rewrite code to not use this.'); foreach ($data as $key => $value) { - if ($value !== NULL) { + if ($value !== NULL && $value !== '') { $this->offsetSet($key, $value); } }