Index: branches/5.2.x/units/affiliate_payments/affiliate_payments_event_handler.php =================================================================== diff -u -N -r14986 -r15061 --- branches/5.2.x/units/affiliate_payments/affiliate_payments_event_handler.php (.../affiliate_payments_event_handler.php) (revision 14986) +++ branches/5.2.x/units/affiliate_payments/affiliate_payments_event_handler.php (.../affiliate_payments_event_handler.php) (revision 15061) @@ -1,6 +1,6 @@ Application->recallObject('affil'); - $object =& $event->getObject( Array('skip_autoload'=>true) ); - $object->SetDBField('Amount', $affiliate->GetDBField('AmountToPay') ); - $object->SetDBField('AffiliateId', $affiliate->GetID() ); + /* @var $affiliate kDBItem */ + + $object =& $event->getObject(Array ('skip_autoload' => true)); + /* @var $object kDBItem */ + + $object->SetDBField('Amount', $affiliate->GetDBField('AmountToPay')); + $object->SetDBField('AffiliateId', $affiliate->GetID()); } /** @@ -72,7 +78,7 @@ * @return void * @access protected */ - protected function OnAfterItemCreate(&$event) + protected function OnAfterItemCreate(kEvent &$event) { parent::OnAfterItemCreate($event);