Merge pull request #3874 from rohankatkar/CRM-15136
[civicrm-core.git] / CRM / Upgrade / Incremental / Legacy.php
index e489ce0d05c6e215af97813a14fc1c81b0ae21e7..b296ffd7295fcd9a59170f427969071de1c1abfc 100644 (file)
@@ -111,7 +111,7 @@ SELECT  id
       }
     }
 
-    if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_innodb_fts', NULL, FALSE)) {
+    if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SEARCH_PREFERENCES_NAME, 'enable_innodb_fts', NULL, FALSE)) {
       // The FTS indexing feature dynamically manipulates the schema which could
       // cause conflicts with other layers that manipulate the schema. The
       // simplest thing is to turn it off and back on.