From 89b6dcf0af22a3748073d3c383d277a3cb9aa57c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 20 Jun 2014 20:37:48 -0700 Subject: [PATCH] CRM-14224 - CRM_Upgrade_Incremental_php_FourFour - Fix isValidWordReplacement() The conditional was incorrect -- most likely an incomplete refactoring from (eg isInvalid => isValid). --- CRM/Upgrade/Incremental/php/FourFour.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Upgrade/Incremental/php/FourFour.php b/CRM/Upgrade/Incremental/php/FourFour.php index 58d055ae46..0f7b583a4f 100644 --- a/CRM/Upgrade/Incremental/php/FourFour.php +++ b/CRM/Upgrade/Incremental/php/FourFour.php @@ -667,7 +667,7 @@ CREATE TABLE IF NOT EXISTS `civicrm_word_replacement` ( * @return bool TRUE if $params is valid */ static function isValidWordReplacement($params) { - $result = strlen($params['find_word']) <= self::MAX_WORD_REPLACEMENT_SIZE && strlen($params['replace_word']) > self::MAX_WORD_REPLACEMENT_SIZE; + $result = strlen($params['find_word']) <= self::MAX_WORD_REPLACEMENT_SIZE && strlen($params['replace_word']) <= self::MAX_WORD_REPLACEMENT_SIZE; if (!$result) { CRM_Core_Error::debug_var('invalidWordReplacement', $params); } -- 2.25.1