From 27398a737a070decdaa013dd20897c94f84ccfa5 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 29 Apr 2015 15:45:21 +0800 Subject: Bug 1159582: All api responses have unnecessary 'result' r=wicked,a=glob --- Bugzilla/API/1_0/Server.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm index 83d09c401..4df88a56d 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 }; } -- cgit v1.2.3-24-g4f1b