diff options
Diffstat (limited to 'Bugzilla/Search/Recent.pm')
-rw-r--r-- | Bugzilla/Search/Recent.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/Search/Recent.pm b/Bugzilla/Search/Recent.pm index d7d595ecc..89d9cf6ff 100644 --- a/Bugzilla/Search/Recent.pm +++ b/Bugzilla/Search/Recent.pm @@ -90,6 +90,15 @@ sub check { return $search; } +sub check_quietly { + my $class = shift; + my $error_mode = Bugzilla->error_mode; + Bugzilla->error_mode(ERROR_MODE_DIE); + my $search = eval { $class->check(@_) }; + Bugzilla->error_mode($error_mode); + return $search; +} + sub new_from_cookie { my ($invocant, $bug_ids) = @_; my $class = ref($invocant) || $invocant; |