From 21bf8dcfd7a3a866f84c2c62dbd07be45dd3b366 Mon Sep 17 00:00:00 2001 From: Freerk Date: Thu, 29 Apr 2021 07:48:47 +0000 Subject: [PATCH] Fixed issue with order of optional arguments --- Mplusqapiclient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mplusqapiclient.php b/Mplusqapiclient.php index de7e5d0..0978cc3 100755 --- a/Mplusqapiclient.php +++ b/Mplusqapiclient.php @@ -2,7 +2,7 @@ class MplusQAPIclient { - const CLIENT_VERSION = '1.34.5'; + const CLIENT_VERSION = '1.34.6'; const WSDL_TTL = 300; var $MIN_API_VERSION_MAJOR = 0; @@ -3912,7 +3912,7 @@ protected function validateCardType($cardType) { } //---------------------------------------------------------------------------- - public function getOverview($cardType, $categoryId = 0, $selectFields, $pageNumber = null, $maxPerPage = null, $orderField = null, $sortOrder = null, $filters = null, $search = null, $retrieveImageList = null, $attempts = 0) { + public function getOverview($cardType, $categoryId = 0, $selectFields = array(), $pageNumber = null, $maxPerPage = null, $orderField = null, $sortOrder = null, $filters = null, $search = null, $retrieveImageList = null, $attempts = 0) { try { $this->validateCardType($cardType); $request = $this->parser->convertGetOverviewRequest($cardType, $categoryId, $selectFields, $pageNumber, $maxPerPage, $orderField, $sortOrder, $filters, $search, $retrieveImageList); @@ -3961,7 +3961,7 @@ public function getOverviewFields($cardType, $categoryId = 0, $attempts = 0) { // END getOverviewFields() //---------------------------------------------------------------------------- - public function updateBatch($cardType, $categoryId = 0, $numbers, $fields, $attempts = 0) { + public function updateBatch($cardType, $categoryId = 0, $numbers = array(), $fields = array(), $attempts = 0) { try { $this->validateCardType($cardType); $request = $this->parser->convertUpdateBatchRequest($cardType, $categoryId, $numbers, $fields);