mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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>
This commit is contained in:
parent
e9d8e9b8c0
commit
97085daadc
2 changed files with 7 additions and 8 deletions
|
@ -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 />';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue