|
@@ 270-275 (lines=6) @@
|
| 267 |
|
) |
| 268 |
|
->innerJoin('') |
| 269 |
|
->exclude(array('ID' => $order->ID)); |
| 270 |
|
foreach ($otherOrders as $otherOrder) { |
| 271 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 272 |
|
$similarArray[$otherOrder->ID] = array(); |
| 273 |
|
} |
| 274 |
|
$similarArray[$otherOrder->ID]["Email"] = $otherOrder; |
| 275 |
|
} |
| 276 |
|
//check emails from billing address |
| 277 |
|
$emailArray = array(); |
| 278 |
|
if ($billingAddress) { |
|
@@ 287-293 (lines=7) @@
|
| 284 |
|
$otherBillingAddresses = BillingAddress::get()->filter( |
| 285 |
|
array('Email' => $emailArray) + $timeFilter |
| 286 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 287 |
|
foreach ($otherBillingAddresses as $address) { |
| 288 |
|
$otherOrder = $address->Order(); |
| 289 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 290 |
|
$similarArray[$otherOrder->ID] = array(); |
| 291 |
|
} |
| 292 |
|
$similarArray[$otherOrder->ID]["Email"] = $otherOrder; |
| 293 |
|
} |
| 294 |
|
//adding all emails to security checks |
| 295 |
|
$this->blacklistCheck($emailArray, 'EcommerceSecurityEmail'); |
| 296 |
|
|