summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-05-02 23:14:01 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-05-06 12:12:51 +0200
commit97085daadcbc8b1ae1a01cd777605f66464a02ea (patch)
treeb63f16334168cd3024897cdcb4a52a648b70985d /web/html
parente9d8e9b8c074421d15103fd66112dea78800e72a (diff)
downloadaur-97085daadcbc8b1ae1a01cd777605f66464a02ea.tar.gz
aur-97085daadcbc8b1ae1a01cd777605f66464a02ea.tar.xz
user_table optimization
Rather than looking up by username, it makes more sense to look the stats up by user ID to reduce the number of needed joins. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/index.php b/web/html/index.php
index 0d513d37..21de99d6 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -58,8 +58,8 @@ echo __(
<td class='boxSoft' valign='top'>
<?php
if (!empty($_COOKIE["AURSID"])) {
- $user = username_from_sid($_COOKIE["AURSID"]);
- user_table($user, $dbh);
+ $userid = uid_from_sid($_COOKIE["AURSID"]);
+ user_table($userid, $dbh);
echo '<br />';
}