From 6105a778b6c1edbcddc54a8955489062adb452d3 Mon Sep 17 00:00:00 2001 From: Barbara Pitt Date: Fri, 25 Dec 2020 23:49:02 -0600 Subject: [PATCH] issue#21 - fixing catalog stickies --- templates/themes/catalog/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 2b5b6c66..63ced223 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -307,7 +307,7 @@ print_err("Catalog.build calling buildThreadsQuery. boardname: $board_name"); $sql = $this->buildThreadsQuery($board_name); print_err("Catalog.build calling buildThreadsQuery ok"); - $query = query($sql . ' ORDER BY `bump` DESC') or error(db_error()); + $query = query($sql . ' ORDER BY `sticky` DESC,`bump` DESC') or error(db_error()); $threads = $query->fetchAll(PDO::FETCH_ASSOC); print_err("Catalog.build has threads"); // Save for posterity