diff options
author | Yorhel <git@yorhel.nl> | 2009-10-10 16:33:56 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-10 16:33:56 +0200 |
commit | 64007de03cba6c0acb8a2782bc5f86bcad946850 (patch) | |
tree | 4c9102154c7d3d5903ae67ab382fd3e0f52ccc40 /lib/VNDB/Handler/Users.pm | |
parent | ecf82cabc44dcd333f0e46c037c7d9c1c4046a0d (diff) |
Greatly reduced default number of columns returned by dbUserGet
Most of the columns are only used in some rare situations, so fetching
all that information is unecessary. To fetch this information, a
what => 'extended'
is now required. This change should be most noticable for the user list
(now less than half of the previous data is fetched from the database).
Diffstat (limited to 'lib/VNDB/Handler/Users.pm')
-rw-r--r-- | lib/VNDB/Handler/Users.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm index 1a4b993b..39aecbfc 100644 --- a/lib/VNDB/Handler/Users.pm +++ b/lib/VNDB/Handler/Users.pm @@ -267,7 +267,7 @@ sub edit { return $self->htmlDenied if !$self->authInfo->{id} || $self->authInfo->{id} != $uid && !$self->authCan('usermod'); # fetch user info (cached if uid == loggedin uid) - my $u = $self->authInfo->{id} == $uid ? $self->authInfo : $self->dbUserGet(uid => $uid)->[0]; + my $u = $self->authInfo->{id} == $uid ? $self->authInfo : $self->dbUserGet(uid => $uid, what => 'extended')->[0]; return 404 if !$u->{id}; # check POST data |