$content = merge_array($content, $row);
// Ok, add points to used points, send an email to him and ignore return status
- subtractPoints('admin_all', $content['userid'], postRequestElement('points'));
+ subtractPoints('admin_sub_all', $content['userid'], postRequestElement('points'));
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
- 'points' => bigintval(postRequestElement('points'))
+ 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'points' => bigintval(postRequestElement('points')),
+ 'subject' => 'admin_sub_all',
);
// Load message and send it away
if ((isFormSent()) && (isPostRequestElementSet('points'))) {
// Ok, add to used points, send an email to him and ignore return status
- subtractPoints('admin_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
+ subtractPoints('admin_sub_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
// Prepare content
$content = array(
- 'reason' => SQL_ESCAPE(postRequestElement('reason')),
- 'points' => bigintval(postRequestElement('points'))
+ 'reason' => SQL_ESCAPE(postRequestElement('reason')),
+ 'points' => bigintval(postRequestElement('points')),
+ 'subject' => 'admin_sub_single',
);
// Load email and send it away