From 8c07c091e8b4bfcee33745d6c2e58a35cbf9a44d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 9 Feb 2014 01:37:03 +0100 Subject: Remove LastVoted column This has been introduced by commit aae43d9 (started working on package comments, 2005-03-05) but it seems to be of no practical use. Remove the field to save some space. Signed-off-by: Lukas Fleischer --- web/lib/pkgfuncs.inc.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'web/lib/pkgfuncs.inc.php') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 59cc9756..5800a265 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -1071,12 +1071,6 @@ function pkg_vote ($atype, $ids, $action=true) { $dbh->exec($q); - if ($action) { - $q = "UPDATE Users SET LastVoted = UNIX_TIMESTAMP() "; - $q.= "WHERE ID = $uid"; - $dbh->exec($q); - } - if ($action) { return array(true, __("Your votes have been cast for the selected packages.")); } else { -- cgit v1.2.3-24-g4f1b