Index: branches/5.2.x/units/orders/orders_event_handler.php =================================================================== diff -u -N -r15172 -r15213 --- branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 15172) +++ branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 15213) @@ -1,6 +1,6 @@ GetDBField('ShippingEmail'); $email_params['to_email'] = $shipping_email ? $shipping_email : $email_params['_user_email']; - $email_event_user =& $this->Application->EmailEventUser('ORDER.SHIP', $object->GetDBField('PortalUserId'), $email_params); + $this->Application->EmailEventUser('ORDER.SHIP', $object->GetDBField('PortalUserId'), $email_params); // inform payment gateway that order was shipped $gw_data = $object->getGatewayData(); @@ -2210,7 +2210,7 @@ if ($this->ReadyToProcess($object->GetID())) { $event->CallSubEvent('OnReserveItems'); if ($event->status == kEvent::erSUCCESS) $set_new_status = true; - $email_event_user =& $this->Application->EmailEventUser('BACKORDER.PROCESS', $object->GetDBField('PortalUserId'), $email_params); + $this->Application->EmailEventUser('BACKORDER.PROCESS', $object->GetDBField('PortalUserId'), $email_params); } else { $event->status = kEvent::erFAIL; } @@ -2872,8 +2872,8 @@ $sub_order->SetDBField('Status', ORDER_STATUS_BACKORDERS); if ($event->Special != 'recurring') { // just in case if admin uses tangible backordered products in recurring orders - $email_event_user =& $this->Application->EmailEventUser('BACKORDER.ADD', $sub_order->GetDBField('PortalUserId'), $this->OrderEmailParams($sub_order)); - $email_event_admin =& $this->Application->EmailEventAdmin('BACKORDER.ADD'); + $this->Application->EmailEventUser('BACKORDER.ADD', $sub_order->GetDBField('PortalUserId'), $this->OrderEmailParams($sub_order)); + $this->Application->EmailEventAdmin('BACKORDER.ADD'); } } else { @@ -3511,15 +3511,15 @@ if ($complete_event->status == kEvent::erSUCCESS) { //send recurring ok email - $email_event_user =& $this->Application->EmailEventUser('ORDER.RECURRING.PROCESSED', $order->GetDBField('PortalUserId'), $this->OrderEmailParams($order)); - $email_event_admin =& $this->Application->EmailEventAdmin('ORDER.RECURRING.PROCESSED'); + $this->Application->EmailEventUser('ORDER.RECURRING.PROCESSED', $order->GetDBField('PortalUserId'), $this->OrderEmailParams($order)); + $this->Application->EmailEventAdmin('ORDER.RECURRING.PROCESSED'); } else { //send Recurring failed event $order->SetDBField('Status', ORDER_STATUS_DENIED); $order->Update(); - $email_event_user =& $this->Application->EmailEventUser('ORDER.RECURRING.DENIED', $order->GetDBField('PortalUserId'), $this->OrderEmailParams($order)); - $email_event_admin =& $this->Application->EmailEventAdmin('ORDER.RECURRING.DENIED'); + $this->Application->EmailEventUser('ORDER.RECURRING.DENIED', $order->GetDBField('PortalUserId'), $this->OrderEmailParams($order)); + $this->Application->EmailEventAdmin('ORDER.RECURRING.DENIED'); } }