Skip to content
Snippets Groups Projects
Commit e4ea23f3 authored by Aaron Bauman's avatar Aaron Bauman
Browse files

Prevent passing null to explode

parent 3dacfdbf
No related branches found
No related tags found
No related merge requests found
...@@ -295,7 +295,10 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa ...@@ -295,7 +295,10 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa
break; break;
case 'multipicklist': case 'multipicklist':
if (!is_array($value)) { if (empty($value)) {
$value = [];
}
if (is_string($value)) {
$value = explode(';', $value); $value = explode(';', $value);
$value = array_map('trim', $value); $value = array_map('trim', $value);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment