From b36194a08d13dad80889bd4c93b964993e48acba 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 56cf330f94..3fb5d8effa 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -264,7 +264,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