Skip to content
Snippets Groups Projects
Commit 37b4490a authored by Abhishek Gupta's avatar Abhishek Gupta Committed by Aliaksei Lyzo
Browse files

Resolve #3456701 "Passing null to"

parent 539df068
No related branches found
No related tags found
1 merge request!9Resolve #3456701 "Passing null to"
......@@ -150,8 +150,8 @@ class AdvancedDatalayerDefaultsForm extends EntityForm {
// Find the current entity type and bundle.
$datalayer_defaults_id = $datalayer_defaults->id();
$type_parts = explode('__', $datalayer_defaults_id);
$entity_type = $type_parts[0];
$type_parts = $datalayer_defaults_id ? explode('__', $datalayer_defaults_id) : [];
$entity_type = $type_parts[0] ?? NULL;
$entity_bundle = $type_parts[1] ?? NULL;
// Chek if need display only specific tags for this entity type and bundle.
......
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