From fcf17df571b731f2c056ba88f8f71acf0f397f0d Mon Sep 17 00:00:00 2001 From: colemanw Date: Sat, 21 Nov 2015 15:06:00 -0500 Subject: [PATCH] Prevent possible fatal error --- fancytokens.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fancytokens.php b/fancytokens.php index feb3145..f44d407 100644 --- a/fancytokens.php +++ b/fancytokens.php @@ -100,7 +100,7 @@ function fancytokens_civicrm_tokens( &$tokens ){ //print "

"; //print_r($config); if ($config->userSystem->is_drupal){ - if( module_exists( "webform") && module_exists( "webform_civicrm")){ + if (function_exists("module_exists") && module_exists("webform_civicrm")) { //$drupal_db = getUserFrameworkDatabaseName(); //$sql = "SELECT cforms.nid, node.title FROM $drupal_db.webform_civicrm_forms cforms