mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Merge pull request #485 from tractorcow/pulls/fix-warning
BUG Prevent strstr showing warning on array $value
This commit is contained in:
commit
2dce050087
@ -46,7 +46,7 @@ class UserFormsCheckboxSetField extends CheckboxSetField {
|
||||
|
||||
$previous = $value = $this->Value();
|
||||
|
||||
if (strstr($value, ",")) {
|
||||
if (is_string($value) && strstr($value, ",")) {
|
||||
$value = explode(",", $value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user