summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-01-23 04:27:45 +0100
committermkanat%bugzilla.org <>2009-01-23 04:27:45 +0100
commitaff82a963b8ef1561b346eea5627ee189ce405f8 (patch)
tree1a55ea83a259534dbcb9860cd3751fa8e8e4416c /Bugzilla/WebService
parentdb7cfa425147c7dc174050f8cca5870a2696e66b (diff)
downloadbugzilla-aff82a963b8ef1561b346eea5627ee189ce405f8.tar.gz
bugzilla-aff82a963b8ef1561b346eea5627ee189ce405f8.tar.xz
Fix some nits that I forgot to fix on checkin for bug 474715.
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-xBugzilla/WebService/Bug.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 31f87ba99..1c0df32ac 100755
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -221,8 +221,9 @@ sub get_history {
sub search {
my ($self, $params) = @_;
- if ( $params->{offset} and !$params->{limit} ) {
- ThrowCodeError( 'param_required', { param => 'limit', function => 'Bug.search()'});
+ if ( defined($params->{offset}) and !defined($params->{limit}) ) {
+ ThrowCodeError('param_required',
+ { param => 'limit', function => 'Bug.search()' });
}
$params = _map_fields($params);