Fix sorting order when clicking table headings

A bug introduced in commit 7d7e079 (Hide the table sorting links on the
dashboard, 2017-02-04) resulted in multiple clicks on a table heading in
the package search results table no longer having any effect, instead of
changing the sorting order. Fix this by removing erroneous spaces from
the GET parameters in the search URL.

Fixes FS#56261.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-11-07 21:36:42 +01:00
parent 8c98db0b82
commit 0aa67b278a

View file

@ -3,7 +3,7 @@ if ($show_headers) {
$fmtth = function($title, $sb=false, $so=false, $hint=false) {
echo '<th>';
if ($sb) {
echo '<a href="?' . mkurl('SB=' . $sb . '&SO = ' . $so) . '">' . $title . '</a>';
echo '<a href="?' . mkurl('SB=' . $sb . '&SO=' . $so) . '">' . $title . '</a>';
} else {
echo $title;
}