summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-02-09 01:37:03 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-02-09 01:43:37 +0100
commit8c07c091e8b4bfcee33745d6c2e58a35cbf9a44d (patch)
tree40572d50c23bec38f880f35b52d5919418d67f61 /web/lib/pkgfuncs.inc.php
parentb7b586a8c405e6e5967c5febcab67caab581ca0c (diff)
downloadaurweb-8c07c091e8b4bfcee33745d6c2e58a35cbf9a44d.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 59cc975..5800a26 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -1072,12 +1072,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 {
return array(true, __("Your votes have been removed from the selected packages."));