Skip to content
Snippets Groups Projects
Commit 582f757f authored by Michelle Cox's avatar Michelle Cox Committed by Aaron Bauman
Browse files

Issue #3304404 by Michelle: Null $value causing PHP 8 deprecation warning

parent ba200b96
No related branches found
No related tags found
No related merge requests found
...@@ -242,7 +242,7 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa ...@@ -242,7 +242,7 @@ abstract class SalesforceMappingFieldPluginBase extends PluginBase implements Sa
break; break;
} }
if ($field_definition['length'] > 0 && strlen($value) > $field_definition['length']) { if (!empty($value) && $field_definition['length'] > 0 && strlen($value) > $field_definition['length']) {
$value = substr($value, 0, $field_definition['length']); $value = substr($value, 0, $field_definition['length']);
} }
......
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