|
@@ 291-296 (lines=6) @@
|
| 288 |
|
) |
| 289 |
|
) |
| 290 |
|
->exclude(array('ID' => $order->ID)); |
| 291 |
|
foreach ($otherOrders as $otherOrder) { |
| 292 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 293 |
|
$similarArray[$otherOrder->ID] = array(); |
| 294 |
|
} |
| 295 |
|
$similarArray[$otherOrder->ID]["Email"] = $otherOrder; |
| 296 |
|
} |
| 297 |
|
//check emails from billing address |
| 298 |
|
$emailArray = array(); |
| 299 |
|
if ($billingAddress) { |
|
@@ 308-314 (lines=7) @@
|
| 305 |
|
$otherBillingAddresses = BillingAddress::get()->filter( |
| 306 |
|
array('Email' => $emailArray) + $timeFilter |
| 307 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 308 |
|
foreach ($otherBillingAddresses as $address) { |
| 309 |
|
$otherOrder = $address->Order(); |
| 310 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 311 |
|
$similarArray[$otherOrder->ID] = array(); |
| 312 |
|
} |
| 313 |
|
$similarArray[$otherOrder->ID]["Email"] = $otherOrder; |
| 314 |
|
} |
| 315 |
|
//adding all emails to security checks |
| 316 |
|
$this->blacklistCheck($emailArray, 'EcommerceSecurityEmail'); |
| 317 |
|
|