Skip to content
Snippets Groups Projects
Commit 211e0679 authored by Jerenus's avatar Jerenus Committed by podarok
Browse files

Issue #1928812 by Jerenus | Summit: Fixed Notice: Undefined index: node in...

Issue #1928812 by Jerenus | Summit: Fixed Notice: Undefined index: node in gmap_taxonomy_get_instances() (line 269 gmap_taxonomy().module.
parent 98c74795
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,7 @@ function gmap_taxonomy_get_instances() {
$fields = field_info_fields();
// loop through to get the ones of field type taxonomy_term_reference
foreach ($fields as $field) {
if ($field['type'] == 'taxonomy_term_reference') {
if ($field['type'] == 'taxonomy_term_reference' && isset($field['bundles']['node'])) {
foreach ($field['bundles']['node'] as $node_type) {
$gmap_taxonomy_fields[$node_type][] = $field['field_name'];
}
......
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