From 7d49d7b3bca28f05c510dfee736c63bec4391d6e Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Mon, 3 Aug 2015 21:14:59 +0200 Subject: [PATCH] Fixing style issues, as usual. --- api/v3/utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 70a1de26ff..3bc266f921 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -478,7 +478,7 @@ function _civicrm_api3_get_using_query_object_simple($dao_name, $params, $return // nested call you use the id (e.g. "id" => "$value.some_id"), the parent // call will get a param "id" => NULL. Not sure whether this is expected // behaviour or a bug. But I'll have to work around it. - if (array_key_exists('id', $params) && $params['id'] === null) { + if (array_key_exists('id', $params) && $params['id'] === NULL) { unset($params['id']); } @@ -486,7 +486,7 @@ function _civicrm_api3_get_using_query_object_simple($dao_name, $params, $return $entity = _civicrm_api_get_entity_name_from_dao($dao); $custom_fields = _civicrm_api3_custom_fields_for_entity($entity); $options = _civicrm_api3_get_options_from_params($params); - + $entity_field_names = _civicrm_api3_field_names( _civicrm_api3_build_fields_array($dao)); $custom_field_names = array(); -- 2.25.1