From 0056ab2178a546c41791e88da95e3fa6cbdce6a5 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 27 Mar 2014 17:23:16 -0700 Subject: [PATCH] CRM_Core_BAO_Setting - Generate better errors --- CRM/Core/BAO/Setting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Setting.php b/CRM/Core/BAO/Setting.php index fb291f0d99..6854949e0d 100644 --- a/CRM/Core/BAO/Setting.php +++ b/CRM/Core/BAO/Setting.php @@ -509,7 +509,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { list($name) = array_keys($settingParams); $getFieldsParams['name'] = $name; } - $fields = civicrm_api('setting','getfields', $getFieldsParams); + $fields = civicrm_api3('setting','getfields', $getFieldsParams); $invalidParams = (array_diff_key($settingParams, $fields['values'])); if (!empty($invalidParams)) { throw new api_Exception(implode(',', $invalidParams) . " not valid settings"); -- 2.25.1