X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fapi.php;h=5c432630a8e5ab8ab5d4f6dfc49c6517f8df2405;hb=52520358ee352835e5f87acd4116f26e8a6c7376;hp=1675d9d1aa0066a326d147a91802699df2d909ba;hpb=b7c04c488c2a9be6ea762597a164871bfd82c128;p=civicrm-core.git diff --git a/api/api.php b/api/api.php index 1675d9d1aa..5c432630a8 100644 --- a/api/api.php +++ b/api/api.php @@ -136,6 +136,10 @@ function _civicrm_api_replace_variables(&$params, &$parentResult, $separator = ' elseif (is_array($value) && is_string(reset($value)) && substr(reset($value), 0, 6) == '$value') { $key = key($value); $value[$key] = _civicrm_api_replace_variable($value[$key], $parentResult, $separator); + // A null value with an operator will cause an error, so remove it. + if ($value[$key] === NULL) { + $value = ''; + } } } }