Merge pull request #485 from tractorcow/pulls/fix-warning

BUG Prevent strstr showing warning on array $value
This commit is contained in:
Will Rossiter 2016-06-20 17:18:09 +12:00 committed by GitHub
commit 2dce050087

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);
}