From 158541a45c8098a681363d6ad123db84bb5e35b1 Mon Sep 17 00:00:00 2001 From: Vladimir Gorea Date: Wed, 30 Aug 2017 11:42:02 +0300 Subject: [PATCH] Update api_post :: processUpdateResults Fix issue with handling uppercase objectnames --- api_post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;