Fixing style issues, as usual.
authorJohan Vervloet <johanv@johanv.org>
Mon, 3 Aug 2015 19:14:59 +0000 (21:14 +0200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Wed, 12 Aug 2015 23:39:39 +0000 (11:39 +1200)
api/v3/utils.php

index 70a1de26ffb2a22caac48093c216a2cad752a54f..3bc266f921b6054d3d64d501d62378fcb4a20b86 100644 (file)
@@ -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();