From: Byron Jones Date: Wed, 29 Apr 2015 07:46:12 +0000 (+0800) Subject: Bug 1159582: All api responses have unnecessary 'result' X-Git-Tag: release-5.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a75e0696043ffc12529cb8c8592906dd2a2952ec;p=thirdparty%2Fbugzilla.git Bug 1159582: All api responses have unnecessary 'result' r=wicked,a=glob --- diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index cefebd65d1..8450a7a284 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -134,8 +134,7 @@ sub response { # 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 }; }