* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Load his personal data
$result_main = SQL_QUERY_ESC("SELECT
- `id`,`gender`,`surname`,`family`,`email`,`remote_addr`,
+ `id`, `gender`, `surname`, `family`, `email`, `remote_addr`,
UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
- `points_amount`,`points_used`,
+ `points_amount`, `points_used`,
(`points_amount` + `points_used`) AS `points`,
`refid`
FROM
// Set default email
$content['email'] = '{--SPONSOR_NO_ADMIN--}';
- if ($content['admin_id'] > 0) {
+ if (isValidUserId($content['admin_id'])) {
// Load admin's email address for contact
$content['email'] = getAdminEmail($content['admin_id']);
} // END - if
// Begin listing of all pending sponsor accounts
$result = SQL_QUERY("SELECT
- `id`,`gender`,`surname`,`family`,`email`,`remote_addr`,
+ `id`, `gender`, `surname`, `family`, `email`, `remote_addr`,
UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`
FROM
`{?_MYSQL_PREFIX?}_sponsor_data`