CRM-18276 fixing regression by initializing array.
authorJoseph Lacey <joseph@palantetech.coop>
Fri, 25 Mar 2016 15:00:00 +0000 (11:00 -0400)
committerJoseph Lacey <joseph@palantetech.coop>
Fri, 25 Mar 2016 15:00:00 +0000 (11:00 -0400)
----------------------------------------
* CRM-18276: Report custom data table retrieval fails when tables are more than 1024 characters
  https://issues.civicrm.org/jira/browse/CRM-18276

CRM/Report/Form.php

index 8a41ce49e7905084b2bc8cfcc9c83afaea872f95..f720104a49f8ca0514f41a6b132330cd897085cc 100644 (file)
@@ -3660,6 +3660,7 @@ ORDER BY cg.weight, cf.weight";
     $mapper = CRM_Core_BAO_CustomQuery::$extendsMap;
     //CRM-18276 GROUP_CONCAT could be used with singleValueQuery and then exploded,
     //but by default that truncates to 1024 characters, which causes errors with installs with lots of custom field sets
+    $customTables = array();
     $customTablesDAO = CRM_Core_DAO::executeQuery("SELECT table_name FROM civicrm_custom_group", CRM_Core_DAO::$_nullArray);
     while ($customTablesDAO->fetch()) {
       $customTables[] = $customTablesDAO->table_name;