From 8d8f67516d6f02d010f95772cd8d20405ffc6204 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 26 Dec 2006 23:23:10 +0000 Subject: [PATCH] r1371: Attempt to fix bug://report/62 where there's a report of a SQL error --- search.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/search.php b/search.php index cc1260f..0f1a878 100644 --- a/search.php +++ b/search.php @@ -397,6 +397,11 @@ if ($_REQUEST['do'] == 'results') $pagination->total = $search['resultcount']; $pagination->split_pages(); + if (!$search['ids']) + { + $message->error(_('No bugs matched your search criteria. Please try again with different search requirements.')); + } + $search = $db->query("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid IN ($search[ids]) $search[orderby] LIMIT " . $pagination->fetch_limit($pagination->page - 1) . ", " . $pagination->perpage); while ($bug = $db->fetch_array($search)) { -- 2.43.5