From: eug48 Date: Sun, 14 Feb 2016 10:43:46 +0000 (+1100) Subject: CRM-17974 - fix typo in createIndexes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d23efff403b0c18bdc1ab4820878f27d9e96489c;p=civicrm-core.git CRM-17974 - fix typo in createIndexes --- diff --git a/CRM/Core/BAO/SchemaHandler.php b/CRM/Core/BAO/SchemaHandler.php index a92572c03a..ccba643f80 100644 --- a/CRM/Core/BAO/SchemaHandler.php +++ b/CRM/Core/BAO/SchemaHandler.php @@ -449,7 +449,7 @@ ADD UNIQUE INDEX `unique_entity_id` ( `entity_id` )"; else { // handle indices over substrings, CRM-6245 // $lengthName is appended to index name, $lengthSize is the field size modifier - $lengthName = isset($substrLenghts[$table][$fieldName]) ? "_{$substrLenghts[$table][$fieldName]})" : ''; + $lengthName = isset($substrLenghts[$table][$fieldName]) ? "_{$substrLenghts[$table][$fieldName]}" : ''; $lengthSize = isset($substrLenghts[$table][$fieldName]) ? "({$substrLenghts[$table][$fieldName]})" : ''; }