Index: branches/5.2.x/units/affiliate_payments/affiliate_payments_tag_processor.php =================================================================== diff -u -N -r14258 -r14702 --- branches/5.2.x/units/affiliate_payments/affiliate_payments_tag_processor.php (.../affiliate_payments_tag_processor.php) (revision 14258) +++ branches/5.2.x/units/affiliate_payments/affiliate_payments_tag_processor.php (.../affiliate_payments_tag_processor.php) (revision 14702) @@ -1,6 +1,6 @@ getObject($params); $user_id = $object->GetDBField('PortalUserId'); - if ($user_id) { - $url_params = Array ( - 'm_opener' => 'd', - 'u_mode' => 't', - 'u_event' => 'OnEdit', - 'u_id' => $user_id, - 'pass' => 'all,u' - ); - - return $this->Application->HREF($params['edit_template'], '', $url_params); + if (!$user_id) { + return ''; } + + $url_params = Array ( + 'm_opener' => 'd', + 'u_mode' => 't', + 'u_event' => 'OnEdit', + 'u_id' => $user_id, + 'pass' => 'all,u' + ); + + return $this->Application->HREF($params['edit_template'], '', $url_params); } function ListPayments($params)