speed up user instantiation

This commit is contained in:
Graham Knop 2010-04-18 18:55:38 -05:00
parent 6298d394ff
commit cd8456ee99

View file

@ -1075,7 +1075,8 @@ sub new {
# Fill in dataDefault
my $default = $session->db->buildHashRef(
"SELECT fieldName, dataDefault FROM userProfileField"
"SELECT fieldName, dataDefault FROM userProfileField", [],
{ noOrder => 1 },
);
for my $key (keys %profile) {
if (!defined $profile{$key} || $profile{$key} eq '') {