Index: branches/5.2.x/units/affiliates/affiliates_event_handler.php =================================================================== diff -u -N -r15134 -r15141 --- branches/5.2.x/units/affiliates/affiliates_event_handler.php (.../affiliates_event_handler.php) (revision 15134) +++ branches/5.2.x/units/affiliates/affiliates_event_handler.php (.../affiliates_event_handler.php) (revision 15141) @@ -1,6 +1,6 @@ Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); + $object = $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); /* @var $object kDBItem */ $affiliate_storage_method = $this->Application->ConfigValue('Comm_AffiliateStorageMethod'); @@ -186,7 +186,7 @@ if ( $object->isLoaded() && ($object->GetDBField('Status') == 1) ) { // user is found with such email - $affiliate_user =& $this->Application->recallObject('u.affiliate', null, Array ('skip_autoload' => true)); + $affiliate_user = $this->Application->recallObject('u.affiliate', null, Array ('skip_autoload' => true)); /* @var $affiliate_user UsersItem */ $affiliate_user->Load($object->GetDBField('PortalUserId')); @@ -225,7 +225,7 @@ */ function OnOrderApprove($event) { - $order =& $this->Application->recallObject($event->getEventParam('Order_PrefixSpecial')); + $order = $this->Application->recallObject($event->getEventParam('Order_PrefixSpecial')); /* @var $order OrdersItem */ $affiliate_id = $order->GetDBField('AffiliateId'); @@ -237,7 +237,7 @@ /* @var $object kDBItem */ if ( $object->Load($affiliate_id) ) { - $affiliate_plan =& $this->Application->recallObject('ap', null, Array ('skip_autoload' => true)); + $affiliate_plan = $this->Application->recallObject('ap', null, Array ('skip_autoload' => true)); /* @var $affiliate_plan kDBItem */ $affiliate_plan->Load($object->GetDBField('AffiliatePlanId')); @@ -428,7 +428,7 @@ { parent::OnBeforeDeleteFromLive($event); - $payment_object =& $this->Application->recallObject('apayments', 'apayments', Array ('skip_autoload' => true)); + $payment_object = $this->Application->recallObject('apayments', 'apayments', Array ('skip_autoload' => true)); /* @var $payment_object kDBItem */ $id = $event->getEventParam('id');