From 321eda0b1d094fca328eb9ece32b73ea8521bdee Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 26 Jul 2006 00:46:54 +0000 Subject: [PATCH] r957: Fix a SQL query we get when sorting by the lastpost --- includes/class_sort.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class_sort.php b/includes/class_sort.php index fcf265f..d0c9768 100644 --- a/includes/class_sort.php +++ b/includes/class_sort.php @@ -135,7 +135,7 @@ class ListSorter WHERE $basewhere" . (is_array($where) ? " AND " . implode("\nAND ", $where) : "") . " - ORDER BY " . $querykeys[ $this->sortkey ] . " " . strtoupper($this->direction) . ($this->sortkey != 'lastpost' ? ", " . $querykeys['lastpost'] : "") . " " . strtoupper($this->direction) . ($limit ? " + ORDER BY " . $querykeys[ $this->sortkey ] . " " . strtoupper($this->direction) . ($this->sortkey != 'lastpost' ? ", " . $querykeys['lastpost'] . " " . strtoupper($this->direction) : "") . ($limit ? " LIMIT $limit" : ""); break; case 'product': -- 2.22.5