summaryrefslogtreecommitdiffstats
path: root/Bugzilla/API
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/API')
-rw-r--r--Bugzilla/API/1_0/Server.pm3
1 files changed, 1 insertions, 2 deletions
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 };
}