diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/WebService/Server/REST.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index cefebd65d..8450a7a28 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 }; } |