From e3c10ca85342bba806d116c4b545dbe7b5f5cd97 Mon Sep 17 00:00:00 2001 From: kovax Date: Thu, 14 Apr 2022 13:13:32 +0200 Subject: [PATCH] trim() vendor and sku/mpn values --- src/Icecat/Api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Icecat/Api.php b/src/Icecat/Api.php index 63255d5..10e0d49 100644 --- a/src/Icecat/Api.php +++ b/src/Icecat/Api.php @@ -138,9 +138,9 @@ public function getArticleByEAN($ean, $lang='HU') public function getArticleByMPN($vendor, $mpn, $lang='HU') { $params = array( - 'prod_id' => $mpn, - 'vendor' => $vendor, - 'lang' => $lang, + 'prod_id' => trim($mpn), + 'vendor' => trim($vendor), + 'lang' => trim($lang), 'output' => 'productxml' );