From 16d398693f0f238dad1c2c2c2bd138e8405f14a7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 10 Mar 2006 08:27:43 +0000 Subject: [PATCH] r751: Removing a "bug." row prefix where there's no JOIN; fixes http://bugs.iris-studios.com/showreport.php?bugid=6 --- vote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vote.php b/vote.php index 5aae252..0eb90c5 100644 --- a/vote.php +++ b/vote.php @@ -27,7 +27,7 @@ if (empty($_REQUEST['do'])) if ($_REQUEST['do'] == 'vote') { - $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . intval($bugsys->in['bugid']) . ((!can_perform('canviewhidden')) ? " AND !bug.hidden" : '')); + $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . intval($bugsys->in['bugid']) . ((!can_perform('canviewhidden')) ? " AND !hidden" : '')); $vote = $db->query_first("SELECT *, FIND_IN_SET(" . $bugsys->userinfo['userid'] . ", userids) AS uservote FROM " . TABLE_PREFIX . "vote WHERE bugid = $bug[bugid]"); if (!can_perform('canvote', $bug['productid'])) -- 2.43.5