From 25cf3b8c3ed72518b1d2a15202d4e345301aff13 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 10:56:12 +0200 Subject: buildmaster/build-list.php: fix a warning --- buildmaster/build-list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildmaster/build-list.php') 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 . ","; -- cgit v1.2.3-70-g09d2