Index: trunk/extensions/DonationInterface/globalcollect_gateway/scripts/orphans.php |
— | — | @@ -29,9 +29,13 @@ |
30 | 30 | echo "Order ID count: " . $outstanding_count . "\n"; |
31 | 31 | |
32 | 32 | $files = $this->getAllLogFileNames(); |
| 33 | + $payments = array(); |
33 | 34 | foreach ($files as $file){ |
| 35 | + if (count($payments) >= $this->max_per_execute){ |
| 36 | + continue; |
| 37 | + } |
34 | 38 | $file_array = $this->getLogfileLines( $file ); |
35 | | - $payments = $this->findTransactionLines($file_array); |
| 39 | + $payments = array_merge($this->findTransactionLines($file_array), $payments); |
36 | 40 | if (count($payments) === 0){ |
37 | 41 | $this->killfiles[] = $file; |
38 | 42 | echo print_r($this->killfiles, true); |