Skip to content
Snippets Groups Projects
Unverified Commit c3874c3a authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #25571 from herbdool/core-4127-1

#4127 use userSystem method to check for Views
parents 73ce2b29 9b4e4904
Branches
Tags
No related merge requests found
......@@ -401,7 +401,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
// prompt Drupal Views users to update $db_prefix in settings.php, if necessary
global $db_prefix;
$config = CRM_Core_Config::singleton();
if (is_array($db_prefix) && $config->userSystem->is_drupal && module_exists('views')) {
if (is_array($db_prefix) && $config->userSystem->viewsExists()) {
// get table_name for each custom group
$tables = [];
$sql = "SELECT table_name FROM civicrm_custom_group WHERE is_active = 1";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment