Index: branches/5.2.x/units/affiliates/affiliates_event_handler.php =================================================================== diff -u -r16516 -r16805 --- branches/5.2.x/units/affiliates/affiliates_event_handler.php (.../affiliates_event_handler.php) (revision 16516) +++ branches/5.2.x/units/affiliates/affiliates_event_handler.php (.../affiliates_event_handler.php) (revision 16805) @@ -1,6 +1,6 @@ Load($affiliate, 'AffiliateCode'); } elseif ( $affiliate_storage_method == 2 ) { - $affiliate_id = $this->Application->GetVar('affiliate_id'); + $affiliate_id = $this->Application->GetVarDirect('affiliate_id', 'Cookie'); $object->Load($affiliate_id); } Index: branches/5.2.x/units/orders/orders_event_handler.php =================================================================== diff -u -r16735 -r16805 --- branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 16735) +++ branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 16805) @@ -1,6 +1,6 @@ SetDBField('AffiliateId', (int)$this->Application->RecallVar('affiliate_id')); } else { - $object->SetDBField('AffiliateId', (int)$this->Application->GetVar('affiliate_id')); + $object->SetDBField('AffiliateId', (int)$this->Application->GetVarDirect('affiliate_id', 'Cookie')); } }