Comments
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Wed, 22 Aug 2018 13:16:04 +0000 (14:16 +0100)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Wed, 22 Aug 2018 13:17:28 +0000 (14:17 +0100)
CRM/Core/BAO/Setting.php
api/v3/Setting.php

index 96a8b7d414bfbe1e9f63cbb1584a0683f8678f9c..5b891898022ddaa41b42e5a334d3140a7681125f 100644 (file)
@@ -103,7 +103,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
   }
 
   /**
-   * Store multiple items in the setting table.
+   * Get multiple items from the setting table.
    *
    * @param array $params
    *   (required) An api formatted array of keys and values.
index df4b6a8f59f22def31cd409ae40c3ea8a52b7446..62a74d270bb8a6fc0419090c145e2f450d18a0fd 100644 (file)
@@ -313,7 +313,7 @@ function _civicrm_api3_setting_create_spec(&$params) {
  */
 function civicrm_api3_setting_get($params) {
   $domains = _civicrm_api3_setting_getDomainArray($params);
-  $result = $result = CRM_Core_BAO_Setting::getItems($params, $domains, CRM_Utils_Array::value('return', $params, array()));
+  $result = CRM_Core_BAO_Setting::getItems($params, $domains, CRM_Utils_Array::value('return', $params, array()));
   return civicrm_api3_create_success($result, $params, 'Setting', 'get');
 }
 /**