From 0a548062240dac8ddcdba04b5577b118989ca2e6 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Mon, 19 Nov 2018 15:18:10 -0400 Subject: [PATCH] Fix PHP Notice. --- bibcite_footnotes.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bibcite_footnotes.module b/bibcite_footnotes.module index 841d99a..180dc63 100644 --- a/bibcite_footnotes.module +++ b/bibcite_footnotes.module @@ -76,6 +76,9 @@ function bibcite_footnotes_preprocess_bibcite_footnote_list(&$variables) { $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; + } foreach ($footnotes as $fn) { $item = [ '#id' => $fn['fn_id'],