- if ((isFormSent()) && (isPostRequestParameterSet('points'))) {
- // Ok, add to used points and send an email to him...
- subtractPoints('admin_single', bigintval(getRequestParameter('userid')), postRequestParameter('points'));
+ if ((isFormSent()) && (isPostRequestElementSet('points'))) {
+ // Ok, add to used points, send an email to him and ignore return status
+ subtractPoints('admin_sub_single', bigintval(getRequestElement('userid')), postRequestElement('points'));