From: Johan Vervloet Date: Mon, 3 Aug 2015 19:14:59 +0000 (+0200) Subject: Fixing style issues, as usual. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d49d7b3bca28f05c510dfee736c63bec4391d6e;p=civicrm-core.git Fixing style issues, as usual. --- 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();