From f352294868ccefe118a790a7f59fa7193203ac6a Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 2 Jan 2015 17:15:16 +0530 Subject: [PATCH] Api test failures fix round4 --- api/v3/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 112e4a6e7e..64cdbe3767 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -2126,7 +2126,7 @@ function _civicrm_api3_field_value_check(&$params, $fieldName) { $fieldValue = CRM_Utils_Array::value($fieldName, $params); $op = NULL; - if (!empty($fieldValue) && is_array($fieldValue) && in_array(key($fieldValue), CRM_Core_DAO::acceptedSQLOperators())) { + if (!empty($fieldValue) && is_array($fieldValue) && array_search(key($fieldValue), CRM_Core_DAO::acceptedSQLOperators())) { $op = key($fieldValue); $fieldValue = CRM_Utils_Array::value($op, $fieldValue); } -- 2.25.1