index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-06-07 10:56:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-07 10:56:12 +0200 |
commit | 25cf3b8c3ed72518b1d2a15202d4e345301aff13 (patch) | |
tree | a154ccf4c7e805ce491fc4c10de4fc4672d31d71 /buildmaster/build-list.php | |
parent | 2b6b3b48eb1d9ce575e00164282595604ae78355 (diff) |
-rw-r--r-- | buildmaster/build-list.php | 4 |
diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php index 792a0e2..31d0dd6 100644 --- a/buildmaster/build-list.php +++ b/buildmaster/build-list.php @@ -154,8 +154,10 @@ if (!isset($_GET["sort"])) if (substr($_GET["sort"],0,1) == "-") { $direction = " DESC"; $sort = substr($_GET["sort"],1); -} else +} else { + $direction = " ASC"; $sort = $_GET["sort"]; +} if (isset($columns[$sort])) $order = "IFNULL(" . $columns[$sort]["mysql_name"] . ",0) " . $direction . ","; |