Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Icecat is a PHP library, that assists you in the following 2 procedures:
* Fetching data from the Icecat database using basic product information.
* Parsing this data from the Icecat response, and using them in real life applications.

>
> **v1.0.2:**
>
> - trim() vendor and sku/mpn values

### About Icecat
[Icecat](http://icecat.biz, "Icecat") is an open catalog, providing free access to thousands of product datasheets.
In extend, when taking a subscription, the amount of accessible datasheets are increased.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"email": "support@icoders.co"
}
],
"version": "1.0.0",
"version": "1.0.2",
"license": "MIT",
"minimum-stability": "dev",
"require": {
Expand Down
6 changes: 3 additions & 3 deletions src/Icecat/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);

Expand Down