summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 10:56:12 +0200
committerErich Eckner <git@eckner.net>2018-06-07 10:56:12 +0200
commit25cf3b8c3ed72518b1d2a15202d4e345301aff13 (patch)
treea154ccf4c7e805ce491fc4c10de4fc4672d31d71 /buildmaster
parent2b6b3b48eb1d9ce575e00164282595604ae78355 (diff)
downloadarchweb32-25cf3b8c3ed72518b1d2a15202d4e345301aff13.tar.xz
buildmaster/build-list.php: fix a warning
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/build-list.php4
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 . ",";