From 70378610eab5949e62550b9422e2b650c0e585f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Naczy=C5=84ski?= Date: Mon, 15 Oct 2018 16:27:52 +0100 Subject: [PATCH] LinkShare - fix in transactions This check was failing - isset($merchantIdList[$transactionData [1]]) - because 1 is date, should be 3 --- Oara/Network/Publisher/LinkShare.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oara/Network/Publisher/LinkShare.php b/Oara/Network/Publisher/LinkShare.php index 8ae0df15..9dcdc6ff 100755 --- a/Oara/Network/Publisher/LinkShare.php +++ b/Oara/Network/Publisher/LinkShare.php @@ -334,7 +334,7 @@ public function getTransactionList($merchantList = null, \DateTime $dStartDate = for ($j = 1; $j < $num; $j++) { $transactionData = \str_getcsv($exportData [$j], ","); - if (count($transactionData) > 10 && (count($merchantIdList)==0 || isset($merchantIdList[$transactionData [1]]))) { + if (count($transactionData) > 10 && (count($merchantIdList)==0 || isset($merchantIdList[$transactionData [3]]))) { $transaction = Array(); $transaction['merchantId'] = ( int )$transactionData[3]; $transaction['merchantName'] = $transactionData[4];