git://git.furryclan.net
/
furrycat
/
race-o-matic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22179d
)
Show sort and format options even when no parameters were originally passed.
author
CMDR furrycat
<elite@furrycat.net>
Wed, 16 Mar 2016 08:09:48 +0000
(
04:09
-0400)
committer
CMDR furrycat
<elite@furrycat.net>
Wed, 16 Mar 2016 08:09:48 +0000
(
04:09
-0400)
lib/race.php
patch
|
blob
|
history
diff --git
a/lib/race.php
b/lib/race.php
index
8ecb653
..
9d86f1c
100644
(file)
--- a/
lib/race.php
+++ b/
lib/race.php
@@
-708,7
+708,8
@@
if (! is_null($class)) $class = " class=\"$class\"";
$uri = " <a$class href=\"$uri&args=";
$args = array();
- foreach ($params as $k => $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";
}