Index: branches/5.2.x/core/units/users/users_tag_processor.php =================================================================== diff -u -N -r14585 -r14596 --- branches/5.2.x/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 14585) +++ branches/5.2.x/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 14596) @@ -1,6 +1,6 @@ Application->ConfigValue('Smtp_AdminMailFrom'); } - function AffiliatePaymentTypeChecked($params) - { - static $checked = false; - - if( $this->Application->GetVar('PaymentTypeId') ) - { - $apt_object =& $this->Application->recallObject('apt.active'); - if( $this->Application->GetVar('PaymentTypeId') == $apt_object->GetDBField('PaymentTypeId') ) - { - return 1; - } - else - { - return 0; - } - } - - if(!$checked) - { - $checked = true; - return 1; - } - else - { - return 0; - } - } - - function HasError($params) - { - $res = parent::HasError($params); - if($this->SelectParam($params,'field,fields') == 'any') - { - $res = $res || $this->Application->GetVar('MustAgreeToTerms'); // need to do it not put module fields into kernel ! (noticed by Alex) - $res = $res || $this->Application->GetVar('SSNRequiredError'); - } - return $res; - } - /** * Returns login name of user *