Skip to content

Commit 4a331e4

Browse files
author
The SoftLayer Developer Network
committed
Merge pull request #3 from SPoage/master
The XmlrpcClient client throws fault on a php notice.
2 parents 20a1a26 + eb04d60 commit 4a331e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/XmlrpcClient.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function __call($functionName, $arguments = null)
151151
throw new Exception('There was an error querying the SoftLayer API: ' . $e->getMessage());
152152
}
153153

154-
if (xmlrpc_is_fault($result)) {
154+
if (is_array($result) && xmlrpc_is_fault($result)) {
155155
throw new Exception('There was an error querying the SoftLayer API: ' . $result['faultString']);
156156
}
157157

0 commit comments

Comments
 (0)