diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 61158b1b..627ac868 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -606,7 +606,7 @@ class Index extends CI_Controller { $pn_payment_date = $this->input->post('payment_date'); $pn_payer = $this->input->post('first_name') . ' ' . $this->input->post('last_name'); $pn_payer_email = $this->input->post('payer_email'); - $pn_receiver_email = $this->input->post('business'); + $pn_receiver_email = $this->input->post('business') ? $this->input->post('business') : $this->input->post('receiver_email'); $post_data = $_POST; $post_data['ipn_time'] = date('Y-m-d H:i:s'); $post_data['notify_time'] = date('Y-m-d H:i:s');