From 71ef41e388d98ff38800e59a14026df0a63ce6ea Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 1 Aug 2005 22:42:22 +0000 Subject: [PATCH] r337: Changed the way orderby is handled in cached searches --- search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search.php b/search.php index e37c05b..d1e7f8d 100644 --- a/search.php +++ b/search.php @@ -381,8 +381,8 @@ if ($_REQUEST['do'] == 'results') ON (bug.userid = user1.userid) LEFT JOIN " . TABLE_PREFIX . "user AS user2 ON (bug.lastpostby = user2.userid) - WHERE bug.bugid IN ($search[ids])" . ($search['orderby'] ? " - ORDER BY $search[orderby]" : '') + WHERE bug.bugid IN ($search[ids]) + $search[orderby]" ); while ($bug = $db->fetch_array($search)) { -- 2.22.5