$valid_reason = (isPostRequestElementSet('reason'));
// Test if a recipient is selected
- $valid_recipient = isValidUserId(postRequestElement('to_userid'));
+ $valid_recipient = isValidId(postRequestElement('to_userid'));
// Re-check receivers and own personal data
$result = SQL_QUERY_ESC("SELECT `userid`, `gender`, `surname`, `family`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid` IN ('%s','%s') AND `status`='CONFIRMED'" . runFilterChain('user_exclusion_sql', ' ') . " LIMIT 2",
SQL_FREERESULT($result);
// ... and add them to a constant for the template
- $content['rows'] = $OUT;
+ $content['rows'] = $OUT;
// Remeber total amount
$content['total_points'] = $total;