Skip to content

Commit eb04d60

Browse files
author
Shane Poage
committed
Fixed PHP notice when the result returned by an XML-RPC call is not an array.
1 parent 20a1a26 commit eb04d60

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)