From 5d021066fe401ca182d989f7f9d0353a1bf74bb6 Mon Sep 17 00:00:00 2001 From: Anika Henke <anika@selfthinker.org> Date: Sun, 15 Apr 2018 14:50:20 +0100 Subject: [PATCH] Fix links with invalid empty target attributes The advanced search options list links with an invalid empty target attribute. This fixes that by skipping empty parameters. --- inc/Ui/SearchState.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Ui/SearchState.php b/inc/Ui/SearchState.php index f45156d28..eb3f7faeb 100644 --- a/inc/Ui/SearchState.php +++ b/inc/Ui/SearchState.php @@ -136,6 +136,6 @@ class SearchState } $href = wl($ID, $hrefAttributes, false, '&'); - return "<a href='$href' " . buildAttributes($tagAttributes) . ">$label</a>"; + return "<a href='$href' " . buildAttributes($tagAttributes, true) . ">$label</a>"; } } -- GitLab