Subject says everything.

-- 
Andrea Scarpino
Arch Linux Developer
From 74bc863fe47fb62102577ebb2fad078565b93a2e Mon Sep 17 00:00:00 2001
From: Andrea Scarpino <[email protected]>
Date: Tue, 2 Nov 2010 17:45:08 +0100
Subject: [PATCH] Do not display current votes in All Votes

---
 web/html/tu.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/web/html/tu.php b/web/html/tu.php
index f0038a5..d5519b1 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -130,7 +130,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
 ?>
 
 <?php
-		$q = "SELECT * FROM TU_VoteInfo ORDER BY Submitted " . $order . $lim;
+		$q = "SELECT * FROM TU_VoteInfo WHERE End < " . time() . " ORDER BY Submitted " . $order . $lim;
 		$result = db_query($q, $dbh);
 
 		$type = __("All Votes");
-- 
1.7.3.2

Reply via email to