From: CMDR furrycat Date: Wed, 16 Mar 2016 08:09:48 +0000 (-0400) Subject: Show sort and format options even when no parameters were originally passed. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=0ec140a74980f30818b1f7defdda8e064f2bb77e;p=furrycat%2Frace-o-matic.git Show sort and format options even when no parameters were originally passed. --- diff --git a/lib/race.php b/lib/race.php index 8ecb653..9d86f1c 100644 --- a/lib/race.php +++ b/lib/race.php @@ -708,7 +708,8 @@ if (! is_null($class)) $class = " class=\"$class\""; $uri = " $v) { + $keys = array_unique(array_merge($params, array($key => $value))); + foreach ($keys as $k => $v) { if ($k == $key) $args[] = "$key:$value"; else $args[] = "$k:$v"; }