From 551c3ccd2f58f353a2535aa824072161558cda4b Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Tue, 26 Oct 2021 15:50:47 -0300 Subject: [PATCH] Properly check for collapsed notes option. --- src/Plugin/Filter/ReferenceFootnotesFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/Filter/ReferenceFootnotesFilter.php b/src/Plugin/Filter/ReferenceFootnotesFilter.php index 639ecd0..283c546 100644 --- a/src/Plugin/Filter/ReferenceFootnotesFilter.php +++ b/src/Plugin/Filter/ReferenceFootnotesFilter.php @@ -129,7 +129,7 @@ class ReferenceFootnotesFilter extends FilterBase { if ($op == 'prepare') { // In the 'prepare' case, the first argument contains the options to use. // The name 'matches' is incorrect, we just use the variable anyway. - $opt_collapse = $matches; + $opt_collapse = isset($matches['footnotes_collapse']) && $matches['footnotes_collapse']; return 0; }