From d89da7ff9be7de57bfcd92c36df0d74198ed6946 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Wed, 30 Sep 2015 23:19:50 +1300 Subject: [PATCH] CRM-17311 wrap call to watchdog in function_exists --- CRM/Utils/System/DrupalBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index 4775192558..b2c1274a72 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -268,7 +268,7 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { * @inheritDoc */ public function logger($message) { - if (CRM_Core_Config::singleton()->userFrameworkLogging) { + if (CRM_Core_Config::singleton()->userFrameworkLogging && function_exists('watchdog')) { watchdog('civicrm', '%message', array('%message' => $message), NULL, WATCHDOG_DEBUG); } } -- 2.25.1