From 56038eaea92f81afd4fa0ca29a92ae144f03a27e Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Thu, 13 Oct 2016 16:59:02 +0200 Subject: [PATCH] Don't store empty array value of a setting as NULL. --- CRM/Core/BAO/Setting.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/BAO/Setting.php b/CRM/Core/BAO/Setting.php index e948b5dfc1..4f46fd7ac7 100644 --- a/CRM/Core/BAO/Setting.php +++ b/CRM/Core/BAO/Setting.php @@ -430,8 +430,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { ); } } - - if (CRM_Utils_System::isNull($value)) { + if (!is_array($value) && CRM_Utils_System::isNull($value)) { $dao->value = 'null'; } else { -- 2.25.1