Commit 61e0a17d authored by Monish Deb's avatar Monish Deb Committed by GitHub
Browse files

Merge pull request #10627 from eileenmcnaughton/sett

CRM-20837 Make setting bug more explicit
parents d0679052 e566ea47
......@@ -286,7 +286,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting {
* @return bool
* @throws \api_Exception
*/
public static function validateSetting(&$value, $fieldSpec) {
public static function validateSetting(&$value, array $fieldSpec) {
if ($fieldSpec['type'] == 'String' && is_array($value)) {
$value = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $value) . CRM_Core_DAO::VALUE_SEPARATOR;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment