diff options
Diffstat (limited to 'buildmaster/build-list.php')
-rw-r--r-- | buildmaster/build-list.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 . ","; |