From abe33166bcfb082571cce1805fe9312d36e542ab Mon Sep 17 00:00:00 2001 From: spalmstr Date: Mon, 28 Jan 2019 16:46:57 +0000 Subject: [PATCH] Core-688 - Contacts - New Email Fix Smarty/plugins/function.crmSetting.php --- CRM/Core/Smarty/plugins/function.crmSetting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Smarty/plugins/function.crmSetting.php b/CRM/Core/Smarty/plugins/function.crmSetting.php index 8a58e155c6..72411c998b 100644 --- a/CRM/Core/Smarty/plugins/function.crmSetting.php +++ b/CRM/Core/Smarty/plugins/function.crmSetting.php @@ -51,7 +51,8 @@ function smarty_function_crmSetting($params, &$smarty) { require_once 'api/api.php'; $result = civicrm_api('setting', 'getvalue', $params); unset($errorScope); - if ($result === FALSE) { + // Core-688 FALSE is returned by Boolean settings, thus giving false errors. + if ($result === NULL) { $smarty->trigger_error("Unknown error"); return NULL; } -- 2.25.1