updated
This commit is contained in:
@@ -527,8 +527,17 @@ class PaypalController extends Controller
|
||||
$other_email[] = $userdata->other_email;
|
||||
}
|
||||
|
||||
// if ($other_email[0] != null) {
|
||||
// $other_email = implode(", ", $other_email);
|
||||
// $email_cc = "orders@merchbay.com" . "," . $other_email;
|
||||
// } else {
|
||||
// $email_cc = "orders@merchbay.com";
|
||||
// }
|
||||
|
||||
if ($other_email[0] != null) {
|
||||
$other_email = implode(", ", $other_email);
|
||||
$other_email = implode(", ", array_filter($other_email, function ($value) {
|
||||
return !is_null($value) && $value !== '';
|
||||
}));
|
||||
$email_cc = "orders@merchbay.com" . "," . $other_email;
|
||||
} else {
|
||||
$email_cc = "orders@merchbay.com";
|
||||
|
||||
Reference in New Issue
Block a user