Skip to content

Commit

Permalink
LinkShare - fix in transactions
Browse files Browse the repository at this point in the history
This check was failing - isset($merchantIdList[$transactionData [1]]) - because 1 is date, should be 3
  • Loading branch information
slaweknaczynski committed Oct 15, 2018
1 parent 2aa31ed commit 7037861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Oara/Network/Publisher/LinkShare.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 7037861

Please sign in to comment.