Don't store empty array value of a setting as NULL.
authorMattias Michaux <mattias.michaux@gmail.com>
Thu, 13 Oct 2016 14:54:26 +0000 (16:54 +0200)
committerMattias Michaux <mattias.michaux@gmail.com>
Thu, 13 Oct 2016 14:54:26 +0000 (16:54 +0200)
Civi/Core/SettingsBag.php

index 7b621e5e7accdbe7fdc4a0e571bcd9545e3ab2a3..2e2bc483d2b10f01823743ea5d510d6e5ef32dbe 100644 (file)
@@ -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 {