Skip to content

Commit

Permalink
Fixed Problems With Toplists
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaglov committed May 12, 2018
1 parent 8a173b4 commit 3674ede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions affilipus.php
Expand Up @@ -3,11 +3,11 @@
/*
Plugin Name: Affilipus
Description: Affilipus - Affiliate Marketing Made Easy
Version: 1.9.2
Version: 1.9.3
Text Domain: imb_affiliate
*/

define( 'IMBAF_VERSION', '1.9.2' );
define( 'IMBAF_VERSION', '1.9.3' );

use imbaa\Affilipus\Entities\AffilipusProduct;
use imbaa\Affilipus\Entities\AffilipusShop;
Expand Down
4 changes: 3 additions & 1 deletion inc/Core/Affiliates/Amazon/partnerAmazon.php
Expand Up @@ -1260,7 +1260,9 @@ public function topsellerSearch($args){

$products = $wpdb->get_results($product_query, ARRAY_A);

$products = array_unique($products);

$products = array_map("unserialize", array_unique(array_map("serialize", $products)));


if(count($products) != 0 && count($products) > $args['limit']){

Expand Down

0 comments on commit 3674ede

Please sign in to comment.