diff --git a/api_post.php b/api_post.php index d5a124c..5dd2788 100755 --- a/api_post.php +++ b/api_post.php @@ -1113,11 +1113,11 @@ private static function validateResponse($response) { * @throws Exception */ private static function processUpdateResults($response, $objectName) { + $objectName = strtolower($objectName); $simpleXml = simplexml_load_string($response); if ($simpleXml === false) { throw new Exception("Invalid XML response: \n " . var_export($response, true)); - } - + } $objects = array(); // check to see if there's an error in the response $status = $simpleXml->operation->result->status;