From 48a89be3e0e8c2c7c0e1808d829409e7ba256be0 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 30 Jan 2015 12:19:48 +0530 Subject: [PATCH] CRM-15728, whitespace removal typo fix ---------------------------------------- * CRM-15728: Improve Scheduled Reminders for membership renewals https://issues.civicrm.org/jira/browse/CRM-15728 --- api/v3/utils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 49baf7612c..5305bc7891 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -384,7 +384,7 @@ function _civicrm_api3_separate_values(&$values) { _civicrm_api3_separate_values($value); } elseif (is_string($value)) { - if ($key == 'case_type_id'){// this is to honor the way case API was originally written + if ($key == 'case_type_id') {// this is to honor the way case API was originally written $value = trim(str_replace($sp, ',', $value), ','); } elseif (strpos($value, $sp) !== FALSE) { @@ -1847,7 +1847,7 @@ function _civicrm_api3_validate_integer(&$params, &$fieldName, &$fieldInfo, $ent // Check our field length if(is_string($fieldValue) && !empty($fieldInfo['maxlength']) && strlen($fieldValue) > $fieldInfo['maxlength'] - ){ + ) { throw new API_Exception( $fieldValue . " is " . strlen($fieldValue) . " characters - longer than $fieldName length" . $fieldInfo['maxlength'] . ' characters', 2100, array('field' => $fieldName, "max_length"=>$fieldInfo['maxlength']) ); @@ -1930,7 +1930,7 @@ function _civicrm_api3_validate_string(&$params, &$fieldName, &$fieldInfo, $enti return; } - if(!is_array($fieldValue)){ + if (!is_array($fieldValue)) { $fieldValue = (string) $fieldValue; } else { -- 2.25.1