From b29d8d2bbaa1fb7689036cafa6c7ac7c260bab7e Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Tue, 6 Oct 2015 12:02:36 -0300 Subject: [PATCH] BUGFIX: Fixed notice from array_filter when the value is null --- code/TagField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/TagField.php b/code/TagField.php index 7fee859..7a07276 100644 --- a/code/TagField.php +++ b/code/TagField.php @@ -207,6 +207,10 @@ class TagField extends DropdownField { $value = $value->column('ID'); } + if(!is_array($value)) { + return parent::setValue($value); + } + return parent::setValue(array_filter($value)); }