From bf322c684d489fa9f58de433e4a6dabbbae2f8cb Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Thu, 13 Oct 2016 16:54:26 +0200 Subject: [PATCH] Don't store empty array value of a setting as NULL. --- Civi/Core/SettingsBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Core/SettingsBag.php b/Civi/Core/SettingsBag.php index 7b621e5e7a..2e2bc483d2 100644 --- a/Civi/Core/SettingsBag.php +++ b/Civi/Core/SettingsBag.php @@ -364,7 +364,7 @@ class SettingsBag { } } - if (\CRM_Utils_System::isNull($value)) { + if (!is_array($value) && \CRM_Utils_System::isNull($value)) { $dao->value = 'null'; } else { -- 2.25.1