summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Saved.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/Search/Saved.pm b/Bugzilla/Search/Saved.pm
index 5dfce611b..2e4c4a336 100644
--- a/Bugzilla/Search/Saved.pm
+++ b/Bugzilla/Search/Saved.pm
@@ -290,9 +290,8 @@ sub url { return $_[0]->{'query'}; }
sub user {
my ($self) = @_;
- return $self->{user} if defined $self->{user};
- $self->{user} = new Bugzilla::User($self->{userid});
- return $self->{user};
+ return $self->{user} ||=
+ Bugzilla::User->new({ id => $self->{userid}, cache => 1 });
}
############