From: Byron Jones Date: Wed, 29 Apr 2015 07:45:21 +0000 (+0800) Subject: Bug 1159582: All api responses have unnecessary 'result' X-Git-Tag: release-5.1.1~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27398a737a070decdaa013dd20897c94f84ccfa5;p=thirdparty%2Fbugzilla.git Bug 1159582: All api responses have unnecessary 'result' r=wicked,a=glob --- diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm index 83d09c401f..4df88a56d4 100644 --- a/Bugzilla/API/1_0/Server.pm +++ b/Bugzilla/API/1_0/Server.pm @@ -93,8 +93,7 @@ sub handle { # and not a undefined or scalar value. if (!ref $result || blessed($result) - || ref $result ne 'HASH' - || ref $result ne 'ARRAY') + || (ref $result ne 'HASH' && ref $result ne 'ARRAY')) { $result = { result => $result }; }