Browse Source

Fix PHP notices.

8.x-1.x 8.x-1.0-beta6
Alexander O'Neill 3 years ago
parent
commit
8e0aec1db4
  1. 5
      bibcite_footnotes.module

5
bibcite_footnotes.module

@ -76,7 +76,7 @@ function bibcite_footnotes_preprocess_bibcite_footnote_list(&$variables) {
$notes['#attached']['library'][] = 'bibcite_footnotes/reference_footnote';
$dont_show_backlink_text = $config['reference_dont_show_backlink_text'];
$sort_references_by = $config['reference_sort_by'];
$citation_tools = new CitationTools();
if (empty($footnotes)) {
return;
@ -241,7 +241,7 @@ function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$for
/**
* @var FieldConfig $field_config
*/
$field_config = $ief_instance['instance'];
if ($field_config = $ief_instance['instance']) {
// Check if this is a bibcite_reference field type.
if ($field_config->getSetting('handler') == 'default:bibcite_reference') {
@ -261,6 +261,7 @@ function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$for
}
}
}
}
$triggering_element = $form_state->getTriggeringElement();
if (!$triggering_element) {

Loading…
Cancel
Save