BUG Prevent strstr showing warning on array $value

Fixes #481
This commit is contained in:
Damian Mooyman 2016-06-20 09:54:33 +12:00
parent c2b9342aa2
commit 5f31f36a17

View File

@ -46,7 +46,7 @@ class UserFormsCheckboxSetField extends CheckboxSetField {
$previous = $value = $this->Value();
if (strstr($value, ",")) {
if (is_string($value) && strstr($value, ",")) {
$value = explode(",", $value);
}